Changeset 3283462
- Timestamp:
- 04/28/2025 01:46:44 PM (11 months ago)
- Location:
- doubledome-wordcount-details-dashboard
- Files:
-
- 23 added
- 3 edited
-
assets/screenshot-4.jpg (added)
-
assets/screenshot-5.jpg (added)
-
tags/2.0 (added)
-
tags/2.0/css (added)
-
tags/2.0/css/styles.css (added)
-
tags/2.0/doubledome-word-count.php (added)
-
tags/2.0/includes (added)
-
tags/2.0/includes/admin-columns.php (added)
-
tags/2.0/includes/exporter.php (added)
-
tags/2.0/includes/settings-page.php (added)
-
tags/2.0/includes/wcfunctions.php (added)
-
tags/2.0/js (added)
-
tags/2.0/js/counter.js (added)
-
tags/2.0/js/settings.js (added)
-
tags/2.0/readme.txt (added)
-
trunk/css (added)
-
trunk/css/styles.css (added)
-
trunk/doubledome-word-count.php (modified) (2 diffs)
-
trunk/includes/admin-columns.php (added)
-
trunk/includes/exporter.php (added)
-
trunk/includes/settings-page.php (added)
-
trunk/includes/wcfunctions.php (modified) (2 diffs)
-
trunk/js (added)
-
trunk/js/counter.js (added)
-
trunk/js/settings.js (added)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
doubledome-wordcount-details-dashboard/trunk/doubledome-word-count.php
r3150282 r3283462 2 2 /** 3 3 * Plugin Name: Post Word Counter - Content Insights Dashboard 4 * Description: The Word Counter plugin offers a dedicated dashboard view that tracks the word count, post count, pages wordcount, and custom post types across your entire WordPress website. It also serves as a post counter and provides a detailed blog post word counter summary, including both the average and total word count. 4 * Description: The Word Counter plugin offers a dedicated dashboard view that tracks the word count, post count, pages wordcount, and custom post types across your entire WordPress website. It also serves as a post counter and provides a detailed blog post word counter summary, including both the average and total word count. Adds real-time word, character, and structural content stats to your editor with export, SEO mode, and more. 5 5 * Tags: Word count, Wordcount, Post count display, Page statistics dashboard, WordPress content analytics, Custom post type stats, Dashboard content insights, Average post count, Total page count, WordPress content overview, Post statistics plugin, Content metrics WordPress 6 6 * Author: DoubleDome Digital Marketing 7 7 * Author URI: https://www.doubledome.com/word-count-wordpress-plugin 8 * Version: 1.48 * Version: 2.0 9 9 * License: GPL-2.0+ 10 10 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt … … 15 15 16 16 define( 'WORD_COUNT_DD_ROOT', __DIR__ ); // Setup plugin directory Root path 17 define( 'WC_DD_VERSION', "1.4"); 17 define( 'WC_DD_VERSION', "2.0"); 18 define( 'WORD_COUNT_DD_URL', plugin_dir_url(__FILE__)); 18 19 19 20 require_once(WORD_COUNT_DD_ROOT . '/includes/wcfunctions.php'); 20 21 21 22 add_action( "plugins_loaded", "init_wc_dd" ); // Load initial Configuration 23 24 // Add settings page 25 require_once plugin_dir_path(__FILE__) . 'includes/settings-page.php'; 26 27 // Add custom columns in post/page list 28 require_once plugin_dir_path(__FILE__) . 'includes/admin-columns.php'; 29 30 // Export functionality 31 require_once plugin_dir_path(__FILE__) . 'includes/exporter.php'; -
doubledome-wordcount-details-dashboard/trunk/includes/wcfunctions.php
r2880108 r3283462 9 9 // Register Word Count by DoubleDome Dashboard Widget 10 10 function register_wc_dd_dashboard_widget() { 11 add_meta_box( 'wc_dd_dashboard_widget', 'DoubleDome –WordCount Details Dashboard', 'wc_dd_dashboard_widget_display', 'dashboard', 'side', 'high' );11 add_meta_box( 'wc_dd_dashboard_widget', 'DoubleDome - WordCount Details Dashboard', 'wc_dd_dashboard_widget_display', 'dashboard', 'side', 'high' ); 12 12 } 13 13 … … 153 153 echo wp_kses($widget_html, $allowed_tags); 154 154 } 155 156 function dd_enqueue_counter_script($hook) { 157 if ($hook === 'settings_page_dd-word-counter-settings') { 158 wp_enqueue_script('wc_dd-settings-js', WORD_COUNT_DD_URL . 'js/settings.js', ['jquery'], null, true); 159 } 160 if (!in_array($hook, ['post.php', 'post-new.php'])) return; 161 162 wp_enqueue_script('dd-word-counter', WORD_COUNT_DD_URL . 'js/counter.js', ['jquery'], '2.0', true); 163 wp_enqueue_style('dd-word-counter-style', WORD_COUNT_DD_URL . 'css/styles.css'); 164 165 166 $options = get_option('dd_word_counter_options', []); 167 wp_localize_script('dd-word-counter', 'ddWordCounterSettings', [ 168 'dark_mode' => !empty($options['dark_mode']), 169 'seo_mode' => !empty($options['seo_mode']), 170 'word_goal' => !empty($options['word_goal']) ? intval($options['word_goal']) : null, 171 'excluded_selectors' => $options['excluded_selectors'] ?? '', 172 'keyboard_shortcuts' => !empty($options['keyboard_shortcuts']), 173 'export_format' => $options['export_format'] ?? 'json', 174 'export_url' => admin_url('admin-post.php?action=dd_export_stats'), 175 ]); 176 } 177 add_action('admin_enqueue_scripts', 'dd_enqueue_counter_script'); 178 179 function wc_dd_add_word_count_meta_box() { 180 $screens = ['post', 'page']; 181 182 // Add CPTs if needed 183 $cpts = get_post_types(['_builtin' => false], 'names'); 184 $screens = array_merge($screens, $cpts); 185 186 foreach ($screens as $screen) { 187 add_meta_box( 188 'wc_dd_word_counter_meta_box', 189 '📝 Word Count Stats', 190 'wc_dd_render_word_count_meta_box', 191 $screen, 192 'side', // or 'normal' for main area 193 'high' 194 ); 195 } 196 } 197 add_action('add_meta_boxes', 'wc_dd_add_word_count_meta_box'); 198 199 function wc_dd_render_word_count_meta_box($post) { 200 $options = get_option('dd_word_counter_options', []); 201 $word_goal = !empty($options['word_goal']) ? intval($options['word_goal']) : 500; 202 203 echo '<div id="wc_dd-meta-box-stats">'; 204 echo '<p><strong>Words:</strong> <span id="wc_dd-meta-words">0</span></p>'; 205 echo '<p><strong>Characters:</strong> <span id="wc_dd-meta-chars">0</span></p>'; 206 echo '<p><strong>Paragraphs:</strong> <span id="wc_dd-meta-paragraphs">0</span></p>'; 207 echo '<p><strong>Sentences:</strong> <span id="wc_dd-meta-sentences">0</span></p>'; 208 echo '<p><strong>Reading Time:</strong> <span id="wc_dd-meta-reading">0</span> min</p>'; 209 echo '<p><strong>Goal:</strong> <span id="wc_dd-goal-progress">0/' . $word_goal . '</span></p>'; 210 echo '<div class="wc_dd-goal-bar-wrapper">'; 211 echo '<div id="wc_dd-goal-bar" style="width:0%"></div>'; 212 echo '</div>'; 213 echo '</div>'; 214 echo '<p><em>Updates in real time as you type.</em></p>'; 215 } 155 216 ?> -
doubledome-wordcount-details-dashboard/trunk/readme.txt
r3150282 r3283462 3 3 Tags: Word count, Wordcount, Post count display, Page statistics dashboard, WordPress content analytics, Custom post type stats, Dashboard content insights, Average post count, Total page count, WordPress content overview, Post statistics plugin, Content metrics WordPress 4 4 Requires at least: 5.4 5 Tested up to: 6. 6.26 Stable tag: 1.45 Tested up to: 6.8 6 Stable tag: 2.0 7 7 License: GPL-2.0+ 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 12 12 == Description == 13 13 14 Introducing Post Word Counter - Content Insights Dashboard, a powerful WordPress plugin meticulously crafted to offer users a comprehensive understanding of their content's word count details. With its user-friendly interface and an array of intuitive features, this plugin serves as an indispensable tool for bloggers, writers, and website owners, empowering them to effectively manage and optimize their content. 14 WordCount WordPress Plugin by DoubleDome is a powerful WordPress plugin designed for writers, editors, and content managers who need precise, real-time content metrics. It tracks word and character counts as you type directly in the post/page editor and goes deeper by also showing sentence, paragraph, and page counts. The plugin estimates reading time and even adds word count stats to your page/post listings for quick insights. 15 Advanced features let you control exactly what’s counted—exclude or include elements like headings or footnotes, toggle SEO mode for content length suggestions, and export your data in CSV or JSON. WordCount supports multiple languages, special characters, and integrates with Google Docs, Notion, and other writing tools. You can also set word goals, get alerts, and use keyboard shortcuts for quick access. 16 Its minimal UI stays out of your way, while options like dark mode, custom themes, and mobile optimization keep your workspace clean and flexible. Whether you're writing casually or managing large content teams, WordCount gives you the control and clarity you need. 15 17 16 With Post Word Counter, you gain access to a centralized dashboard that presents intricate word count statistics for each individual post, page, and custom post type. Seamlessly, you can monitor the number of words in your content, enabling you to assess your writing style, enhance your SEO strategies, and meet specific word count requirements effortlessly. Experience the true power of Post Word Counter - Content Insights Dashboard and take control of your content like never before.17 18 18 Within Post Word Counter's comprehensive dashboard, users gain an invaluable overview of the website's total word count, granting them a clear understanding of the content's overall size and scope. Armed with this information, website owners can make well-informed decisions regarding content organization, formatting, and navigation. 19 **Core Features:** 19 20 20 One of Post Word Counter's standout features lies in its ability to meticulously break down word count details according to various criteria. Users have the flexibility to analyze word count statistics based on categories, tags, authors, and publishing dates. This exceptional capability empowers users to engage in targeted analysis and comparison, enabling them to identify emerging trends, track progress, and adjust content creation strategies accordingly. 21 Real-time Word & Character Count – Displays word and character count as you type in Admin post/page editor. 22 Page, Paragraph, & Sentence Count – Provides detailed statistics beyond just words. 23 Reading Time Estimation – Estimates how long it takes to read the content. 24 Show details on Page/Post listing - Add the word count details on Page/Post listing as a configurable column. 21 25 22 In addition to its exceptional analytical capabilities, Post Word Counter goes above and beyond by offering practical tools for efficient content management. Users have the ability to set personalized word count goals for their posts, ensuring they meet specific targets for each piece of content. With real-time tracking of progress towards these goals, Post Word Counter serves as a constant motivator, encouraging users to consistently produce high-quality and well-structured content. 26 **Advanced Features:** 23 27 24 Designed with user-friendliness in mind, Post Word Counter - Content Insights Dashboard seamlessly integrates into the existing WordPress workflow. The plugin is fully compatible with the latest WordPress version, allowing for effortless installation and activation with just a few clicks. Once installed, it effortlessly integrates into the WordPress admin panel, providing users with quick and convenient access to all the necessary word count details and management features. 28 Exclude/Include Elements – Choose whether to count words in headings, footnotes, or specific sections. 29 SEO Mode – Highlights ideal content length based on best practices. 30 Multi-language Support – Works with different languages and special characters. 31 Export Stats – Download word count data in CSV or JSON. 32 Integration with Writing Apps – Syncs with Google Docs, WordPress, Notion, etc. 33 Customizable Limits & Alerts – Set word count goals and get notifications when reached. 34 Keyboard Shortcut Support – Quickly check stats without clicking menus. 25 35 26 Unlock the power of Post Word Counter - Content Insights Dashboard and streamline your content management process like never before. With its intuitive tools and seamless integration, Post Word Counter empowers you to achieve your content goals with ease and efficiency. 36 **UI & Accessibility:** 27 37 28 No matter if you're a seasoned blogger, a content marketer, or an aspiring writer, Post Word Counter - Content Insights Dashboard is the perfect solution for you. This exceptional WordPress plugin offers a wide range of features, including comprehensive word count analytics, goal-setting capabilities, and a user-friendly interface. It is designed to empower users like you to optimize your content creation process and effortlessly achieve your writing objectives. 38 Minimal UI Overlay – Small, non-intrusive counter at the bottom. 39 Dark Mode & Custom Themes – Matches your writing environment. 40 Mobile-Friendly – Works seamlessly on tablets and phones. 29 41 30 With Post Word Counter by your side, you can dive into detailed word count analytics, gaining valuable insights into your writing patterns and progress. Set personalized goals for your content, and let the plugin track your progress in real-time, motivating you to stay on track and produce high-quality content consistently. The user-friendly interface ensures a seamless experience, allowing you to navigate through the plugin effortlessly and make the most out of its powerful features.31 32 This simple plugin provides a separate dashboard view of the number of words throughout your WordPress website, broken down by pages, posts and even custom post types. It also shows an average and total word count view.33 34 **Features:**35 36 1. Display total word count in all posts37 2. Display total word count in all pages38 3. Display total word count in all custom post types39 4. Display total number of posts, pages and custom post types40 5. Display average words in posts/pages/custom post type41 6. Plugin support via email42 42 43 43 … … 56 56 2. Dashboard Widget 57 57 3. Dashboard Widget 58 4. Page/Post Widget 59 5. Settings Page 58 60 59 61 == Changelog == 62 63 = 2.0 = 64 *Core Features 65 1. Real-time Word & Character Count � Displays word and character count as you type in Admin post/page editor. 66 2. Page, Paragraph, & Sentence Count � Provides detailed statistics beyond just words. 67 3. Reading Time Estimation � Estimates how long it takes to read the content. 68 4. Show details on Page/Post listing - Add the word count details on Page/Post listing as a configurable column. 69 70 *Advanced Features 71 1. Exclude/Include Elements � Choose whether to count words in headings, footnotes, or specific sections. 72 2. SEO Mode � Highlights ideal content length based on best practices. 73 3. Multi-language Support � Works with different languages and special characters. 74 4. Export Stats � Download word count data in CSV or JSON. 75 5. Integration with Writing Apps � Syncs with Google Docs, WordPress, Notion, etc. 76 6. Customizable Limits & Alerts � Set word count goals and get notifications when reached. 77 7. Keyboard Shortcut Support � Quickly check stats without clicking menus. 78 79 *UI & Accessibility 80 1. Minimal UI Overlay � Small, non-intrusive counter at the bottom. 81 2. Dark Mode & Custom Themes � Matches your writing environment. 82 3. Mobile-Friendly � Works seamlessly on tablets and phones. 83 84 * Tested and verified on Wordpress 6.8 60 85 61 86 = 1.4 =
Note: See TracChangeset
for help on using the changeset viewer.