84% cron-task-viewer-redux

Code Review | Cron Tasks Viewer

WordPress plugin Cron Tasks Viewer scored84%from 54 tests.

About plugin

  • Plugin page: cron-task-viewer-...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-6.1.1
  • WordPress version: 6.3.1
  • First release: May 7, 2018
  • Latest release: Feb 17, 2023
  • Number of updates: 9
  • Update frequency: every 195.0 days
  • Top authors: lev0 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,415 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Cron Tasks Viewer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0249.32 ▲10.13
Dashboard /wp-admin3.33 ▼0.0250.13 ▼12.83
Posts /wp-admin/edit.php3.38 ▲0.0246.09 ▼2.44
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.04 ▼5.88
Media Library /wp-admin/upload.php3.25 ▲0.0235.70 ▼0.36
Cron Tasks /wp-admin/tools.php?page=view-cron-redux3.2331.00

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Cron Tasks Viewer
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.27 ▼0.451.73 ▼0.0543.21 ▲2.05
Dashboard /wp-admin2,199 ▲225.57 ▼0.0993.50 ▲7.2643.40 ▲3.38
Posts /wp-admin/edit.php2,104 ▲41.97 ▼0.0432.91 ▼2.8034.46 ▼4.37
Add New Post /wp-admin/post-new.php1,536 ▲823.21 ▲0.25665.85 ▼14.4766.02 ▲12.82
Media Library /wp-admin/upload.php1,404 ▲104.29 ▲0.0892.35 ▼6.5641.33 ▼0.85
Cron Tasks /wp-admin/tools.php?page=view-cron-redux1,0211.9925.2331.39

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/cron-task-viewer-redux/cron-task-viewer-redux.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Please add an image for screenshot #1 (Example of the page with all WP-Cron jobs on it, showing its menu location.)
The official readme.txt might help

cron-task-viewer-redux/cron-task-viewer-redux.php Passed 13 tests

The primary PHP file in "Cron Tasks Viewer" version 1.0.2 is used by WordPress to initiate all plugin functionality
30 characters long description:
Lists all scheduled cron tasks

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin89 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP182889

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods375.00%
▷ Protected methods00.00%
▷ Private methods125.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.03MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png32.59KB32.59KB0.02%