Plugin Directory

Changeset 3283462


Ignore:
Timestamp:
04/28/2025 01:46:44 PM (11 months ago)
Author:
doubledome
Message:

New Core Features:

  • Real-Time Word & Character Counter: Instantly updates as you type in the WordPress editor.
  • Page, Paragraph, & Sentence Counters: Provides detailed content statistics beyond just word count.
  • Reading Time Estimation: Automatically calculates estimated reading time based on word count.
  • Post/Page Listing Integration: Displays word count as a configurable column in the WordPress admin list view.

Advanced Enhancements:

  • Exclude/Include Elements: Fine-tune word counts by selecting which HTML elements to include or ignore (e.g., headings, footnotes).
  • SEO Mode: Highlights optimal content length according to SEO best practices.
  • Multi-Language Support: Accurate word and character counting across multiple languages and character sets.
  • Export Statistics: Download word count data in CSV or JSON formats for reporting or backup.
  • Writing App Integration: Syncs with popular writing tools like Google Docs, Notion, and WordPress Block Editor.
  • Customizable Limits & Alerts: Set word count goals with real-time alerts when thresholds are met.
  • Keyboard Shortcuts: Access content insights instantly without navigating through menus.

UI and Accessibility Improvements:

  • Minimal Overlay Counter: Lightweight, non-intrusive display anchored at the editor's bottom.
  • Dark Mode & Theme Support: Seamlessly adapts to your editor theme or custom colors.
  • Mobile-Friendly Experience: Smooth functionality across desktops, tablets, and smartphones.

Technical Updates:

Full compatibility with:

  • WordPress Gutenberg/Block Editor
  • Classic Editor (TinyMCE)
  • Popular page builders (Elementor)

Optimized performance for large posts and multilingual content.
Backend settings page redesigned for a cleaner, more intuitive experience.
Enhanced JavaScript and AJAX handling for real-time updates without page reloads.

Location:
doubledome-wordcount-details-dashboard
Files:
23 added
3 edited

Legend:

Unmodified
Added
Removed
  • doubledome-wordcount-details-dashboard/trunk/doubledome-word-count.php

    r3150282 r3283462  
    22/**
    33 * 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.
    55 * 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
    66 * Author:      DoubleDome Digital Marketing
    77 * Author URI:  https://www.doubledome.com/word-count-wordpress-plugin
    8  * Version:     1.4
     8 * Version:     2.0
    99 * License:     GPL-2.0+
    1010 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
     
    1515
    1616define( 'WORD_COUNT_DD_ROOT', __DIR__ ); // Setup plugin directory Root path
    17 define( 'WC_DD_VERSION', "1.4");
     17define( 'WC_DD_VERSION', "2.0");
     18define( 'WORD_COUNT_DD_URL', plugin_dir_url(__FILE__));
    1819
    1920require_once(WORD_COUNT_DD_ROOT . '/includes/wcfunctions.php');
    2021
    2122add_action( "plugins_loaded", "init_wc_dd" );  // Load initial Configuration
     23
     24// Add settings page
     25require_once plugin_dir_path(__FILE__) . 'includes/settings-page.php';
     26
     27// Add custom columns in post/page list
     28require_once plugin_dir_path(__FILE__) . 'includes/admin-columns.php';
     29
     30// Export functionality
     31require_once plugin_dir_path(__FILE__) . 'includes/exporter.php';
  • doubledome-wordcount-details-dashboard/trunk/includes/wcfunctions.php

    r2880108 r3283462  
    99// Register Word Count by DoubleDome Dashboard Widget
    1010function 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' );
    1212}
    1313
     
    153153    echo wp_kses($widget_html, $allowed_tags);
    154154}
     155
     156function 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}
     177add_action('admin_enqueue_scripts', 'dd_enqueue_counter_script');
     178
     179function 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}
     197add_action('add_meta_boxes', 'wc_dd_add_word_count_meta_box');
     198
     199function 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}
    155216?>
  • doubledome-wordcount-details-dashboard/trunk/readme.txt

    r3150282 r3283462  
    33Tags: 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
    44Requires at least: 5.4
    5 Tested up to: 6.6.2
    6 Stable tag: 1.4
     5Tested up to: 6.8
     6Stable tag: 2.0
    77License: GPL-2.0+
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1212== Description ==
    1313
    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.
     14WordCount 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.
     15Advanced 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.
     16Its 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.
    1517
    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.
    1718
    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:**
    1920
    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.
     21Real-time Word & Character Count – Displays word and character count as you type in Admin post/page editor.
     22Page, Paragraph, & Sentence Count – Provides detailed statistics beyond just words.
     23Reading Time Estimation – Estimates how long it takes to read the content.
     24Show details on Page/Post listing - Add the word count details on Page/Post listing as a configurable column.
    2125
    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:**
    2327
    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.
     28Exclude/Include Elements – Choose whether to count words in headings, footnotes, or specific sections.
     29SEO Mode – Highlights ideal content length based on best practices.
     30Multi-language Support – Works with different languages and special characters.
     31Export Stats – Download word count data in CSV or JSON.
     32Integration with Writing Apps – Syncs with Google Docs, WordPress, Notion, etc.
     33Customizable Limits & Alerts – Set word count goals and get notifications when reached.
     34Keyboard Shortcut Support – Quickly check stats without clicking menus.
    2535
    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:**
    2737
    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.
     38Minimal UI Overlay – Small, non-intrusive counter at the bottom.
     39Dark Mode & Custom Themes – Matches your writing environment.
     40Mobile-Friendly – Works seamlessly on tablets and phones.
    2941
    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 posts
    37 2. Display total word count in all pages
    38 3. Display total word count in all custom post types
    39 4. Display total number of posts, pages and custom post types
    40 5. Display average words in posts/pages/custom post type
    41 6. Plugin support via email
    4242
    4343
     
    56562. Dashboard Widget
    57573. Dashboard Widget
     584. Page/Post Widget
     595. Settings Page
    5860
    5961== Changelog ==
     62
     63= 2.0 =
     64*Core Features
     651. Real-time Word & Character Count � Displays word and character count as you type in Admin post/page editor.
     662. Page, Paragraph, & Sentence Count � Provides detailed statistics beyond just words.
     673. Reading Time Estimation � Estimates how long it takes to read the content.
     684. Show details on Page/Post listing  - Add the word count details on Page/Post listing as a configurable column.
     69
     70*Advanced Features
     711. Exclude/Include Elements � Choose whether to count words in headings, footnotes, or specific sections.
     722. SEO Mode � Highlights ideal content length based on best practices.
     733. Multi-language Support � Works with different languages and special characters.
     744. Export Stats � Download word count data in CSV or JSON.
     755. Integration with Writing Apps � Syncs with Google Docs, WordPress, Notion, etc.
     766. Customizable Limits & Alerts � Set word count goals and get notifications when reached.
     777. Keyboard Shortcut Support � Quickly check stats without clicking menus.
     78
     79*UI & Accessibility
     801. Minimal UI Overlay � Small, non-intrusive counter at the bottom.
     812. Dark Mode & Custom Themes � Matches your writing environment.
     823. Mobile-Friendly � Works seamlessly on tablets and phones.
     83
     84* Tested and verified on Wordpress 6.8
    6085
    6186= 1.4 =
Note: See TracChangeset for help on using the changeset viewer.