83% total-reading-time-of-wp-post

Code Review | Total Reading Time of WP Post

WordPress plugin Total Reading Time of WP Post scored83%from 54 tests.

About plugin

  • Plugin page: total-reading-tim...
  • Plugin version: 1.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.3.2
  • WordPress version: 6.3.1
  • First release: Feb 25, 2020
  • Latest release: Feb 25, 2020
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: kamrul0424 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /453 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.32MB] [CPU: ▼14.26ms] Passed 4 tests

Server-side resources used by Total Reading Time of WP Post
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.43 ▼0.0332.16 ▼6.33
Dashboard /wp-admin3.31 ▲0.0148.76 ▲1.21
Posts /wp-admin/edit.php3.37 ▲0.0150.38 ▲2.90
Add New Post /wp-admin/post-new.php4.61 ▼1.2837.88 ▼54.83
Media Library /wp-admin/upload.php3.24 ▲0.0139.57 ▲6.14
Total reading time /wp-admin/options-general.php?page=trtwp_setting3.2032.34

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
recovery_mode_email_last_sent
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Total Reading Time of WP Post
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,690 ▼5613.33 ▼0.910.95 ▼0.8819.82 ▼24.98
Dashboard /wp-admin2,213 ▲225.89 ▼0.00108.92 ▲5.5543.00 ▼1.89
Posts /wp-admin/edit.php2,096 ▲211.97 ▼0.0539.54 ▲1.7337.53 ▲1.82
Add New Post /wp-admin/post-new.php45 ▼1,4690.44 ▼17.130.07 ▼685.909.04 ▼42.83
Media Library /wp-admin/upload.php1,392 ▲14.26 ▲0.04111.15 ▲13.5465.78 ▲23.70
Total reading time /wp-admin/options-general.php?page=trtwp_setting7922.0224.6926.49

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • recovery_mode_email_last_sent
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/total-reading-time-of-wp-post/total-reading-time.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% 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: total-reading-time, wp-posts

total-reading-time-of-wp-post/total-reading-time.php 77% from 13 tests

The principal PHP file in "Total Reading Time of WP Post" v. 1.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("total-reading-time-of-wp-post.php" instead of "total-reading-time.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Description: Please keep the plugin description shorter than 140 characters (currently 162 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected43 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1261243

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions7
▷ Named functions7100.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
No PNG files were detected