83% dashboard-wordcount

Code Review | Dashboard Wordcount

WordPress plugin Dashboard Wordcount scored83%from 54 tests.

About plugin

  • Plugin page: dashboard-wordcount
  • Plugin version: 0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.0-4.6.1
  • WordPress version: 6.3.1
  • First release: May 30, 2014
  • Latest release: Oct 11, 2016
  • Number of updates: 12
  • Update frequency: every 72.1 days
  • Top authors: ricardjorg (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

900+ active /7,350 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.04ms] Passed 4 tests

Server-side resources used by Dashboard Wordcount
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.56 ▼2.14
Dashboard /wp-admin3.31 ▲0.0146.92 ▼3.57
Posts /wp-admin/edit.php3.36 ▲0.0047.62 ▲1.28
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.23 ▼15.71
Media Library /wp-admin/upload.php3.23 ▲0.0033.73 ▲2.74

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Dashboard Wordcount
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲7613.58 ▼0.804.41 ▲2.6641.39 ▼2.96
Dashboard /wp-admin2,228 ▲374.82 ▼0.04106.45 ▲0.5544.96 ▲6.53
Posts /wp-admin/edit.php2,092 ▼12.00 ▼0.0139.13 ▼2.0134.66 ▼1.88
Add New Post /wp-admin/post-new.php1,533 ▼923.11 ▲4.90661.54 ▲70.2554.84 ▲0.60
Media Library /wp-admin/upload.php1,385 ▲64.22 ▼0.0093.81 ▼8.4543.28 ▲0.23

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dashboard-wordcount/dashboard-wordcount.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: There are too many tags (15 tag instead of maximum 10)
You can look at the official readme.txt

dashboard-wordcount/dashboard-wordcount.php 85% from 13 tests

The main PHP script in "Dashboard Wordcount" version 0.8 is automatically included on every request by WordPress
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 329 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected179 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PO File3242496

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions8100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected