94% cron-task-viewer-redux

Code Review | Cron Tasks Viewer

WordPress plugin Cron Tasks Viewer scored 94% from 54 tests.

About plugin

  • Plugin page: cron-task-viewer-...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-5.2.1
  • WordPress version: 5.8.1
  • First release: May 7, 2018
  • Latest release: May 24, 2019
  • Number of updates: 5
  • Update frequency: every 77.0 days
  • Top authors: lev0 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 679 total downloads

Benchmarks

Plugin footprint Passed 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: ▼139.36ms] 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 /2.85 ▲0.1337.96 ▲14.39
Dashboard /wp-admin3.07 ▲0.0244.84 ▼3.70
Posts /wp-admin/edit.php3.12 ▲0.0244.54 ▼3.79
Add New Post /wp-admin/post-new.php5.43 ▼0.00114.33 ▼548.02
Media Library /wp-admin/upload.php3.02 ▲0.0133.81 ▼1.94
Cron Tasks /wp-admin/tools.php?page=view-cron-redux2.9827.91

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

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 /3,708 ▲11215.84 ▲0.328.21 ▼1.0749.93 ▲0.38
Dashboard /wp-admin2,972 ▲445.87 ▼0.33157.74 ▼10.48111.42 ▼6.97
Posts /wp-admin/edit.php2,741 ▲22.81 ▼0.0076.36 ▲7.86100.73 ▼12.61
Add New Post /wp-admin/post-new.php1,686 ▼1,95718.74 ▲1.30416.77 ▼59.20127.61 ▲14.37
Media Library /wp-admin/upload.php1,812 ▲55.03 ▼0.00167.50 ▲9.40124.98 ▲7.46
Cron Tasks /wp-admin/tools.php?page=view-cron-redux1,3902.0860.4882.04

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

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 is_admin() in wp-content/plugins/cron-task-viewer-redux/cron-task-viewer-redux.php:35

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.1 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 plugin86 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP182586

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.77
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.02MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png22.62KB22.63KB0.00%