89% post-content-word-count

Code Review | Post Content Word Count

WordPress plugin Post Content Word Count scored89%from 54 tests.

About plugin

  • Plugin page: post-content-word...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Nov 23, 2022
  • Latest release: Nov 23, 2022
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: faisalamir46 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /166 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.58ms] Passed 4 tests

This is a short check of server-side resources used by Post Content Word Count
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.51 ▲3.04
Dashboard /wp-admin3.31 ▲0.0148.42 ▼4.75
Posts /wp-admin/edit.php3.36 ▲0.0150.10 ▼4.81
Add New Post /wp-admin/post-new.php5.89 ▲0.0195.97 ▼11.83
Media Library /wp-admin/upload.php3.24 ▲0.0137.52 ▼0.93

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Post Content Word Count
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.66 ▼1.091.77 ▲0.0039.51 ▼1.39
Dashboard /wp-admin2,209 ▲214.80 ▼1.06112.51 ▼1.3844.72 ▲3.01
Posts /wp-admin/edit.php2,092 ▲32.00 ▼0.0941.23 ▲4.3236.96 ▲0.07
Add New Post /wp-admin/post-new.php1,514 ▼1017.45 ▼5.77669.42 ▼13.1554.13 ▲2.12
Media Library /wp-admin/upload.php1,388 ▲34.15 ▼0.1598.70 ▼15.7749.24 ▲0.56

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: post content word count, reading time count

post-content-word-count/post-content-word-count.php 85% from 13 tests

This is the main PHP file of "Post Content Word Count" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Domain Path: The domain path points to a folder that does not exist ("/langusges/")
  • 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

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected35 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP182535

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.08
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin