83% wpx-cron-manager-light

Code Review | WPX Cron Manager Light

WordPress plugin WPX Cron Manager Light scored83%from 54 tests.

About plugin

  • Plugin page: wpx-cron-manager-...
  • Plugin version: 2.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.8
  • WordPress version: 6.3.1
  • First release: Jan 7, 2015
  • Latest release: Sep 7, 2021
  • Number of updates: 41
  • Update frequency: every 59.4 days
  • Top authors: gfazioli (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /9,552 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼1.12ms] Passed 4 tests

Server-side resources used by WPX Cron Manager Light
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.26 ▼3.00
Dashboard /wp-admin3.33 ▲0.0345.02 ▼4.97
Posts /wp-admin/edit.php3.44 ▲0.0946.11 ▲1.59
Add New Post /wp-admin/post-new.php5.91 ▲0.0286.77 ▲2.50
Media Library /wp-admin/upload.php3.25 ▲0.0234.30 ▲1.91

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 122 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
wpx_cron_manager_light_slug
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for WPX Cron Manager Light
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8114.79 ▲0.041.66 ▼0.2940.88 ▼4.71
Dashboard /wp-admin2,222 ▲374.88 ▼0.03107.94 ▲2.9350.47 ▲3.42
Posts /wp-admin/edit.php2,102 ▲161.97 ▲0.0135.16 ▼1.9829.86 ▼3.31
Add New Post /wp-admin/post-new.php1,546 ▲2723.49 ▼0.01660.98 ▼18.1445.77 ▼9.47
Media Library /wp-admin/upload.php1,404 ▲194.22 ▼0.0496.10 ▼15.5241.22 ▼6.70

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
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • wpx_cron_manager_light_slug

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 23× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WPXCronManagerLight\\WPBones\\Html\\HtmlTag' not found in wp-content/plugins/wpx-cron-manager-light/vendor/wpbones/wpbones/src/Html/HtmlTagA.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WPXCronManagerLight\\WPBones\\Foundation\\WordPressAjaxServiceProvider' not found in wp-content/plugins/wpx-cron-manager-light/plugin/Ajax/WPXCronManagerLightAjax.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WPXCronManagerLight\\WPBones\\Html\\HtmlTag' not found in wp-content/plugins/wpx-cron-manager-light/vendor/wpbones/wpbones/src/Html/HtmlTagOptGroup.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WPXCronManagerLight\\WPBones\\Html\\HtmlTag' not found in wp-content/plugins/wpx-cron-manager-light/vendor/wpbones/wpbones/src/Html/HtmlTagSelect.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WPXCronManagerLight\\WPBones\\Html\\HtmlTag' not found in wp-content/plugins/wpx-cron-manager-light/vendor/wpbones/wpbones/src/Html/HtmlTagForm.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WPXCronManagerLight\\WPBones\\Html\\HtmlTag' not found in wp-content/plugins/wpx-cron-manager-light/vendor/wpbones/wpbones/src/Html/HtmlTagTextArea.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WPXCronManagerLight\\WPBones\\Html\\HtmlTag' not found in wp-content/plugins/wpx-cron-manager-light/vendor/wpbones/wpbones/src/Html/HtmlTagButton.php:5
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/wpx-cron-manager-light/plugin/Http/Controllers/Dashboard/CronListTable.php on line 6
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/wpx-cron-manager-light/plugin/Http/Controllers/Dashboard/CronListTable.php on line 6
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpx-cron-manager-light/plugin/Http/Controllers/Dashboard/CronListTable.php on line 6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: cron, core, cron job, job, event...

wpx-cron-manager-light/index.php 77% from 13 tests

"WPX Cron Manager Light" version 2.4.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Domain Path: Prefix the domain path with a forward slash character ("/localization")
  • Domain Path: Use only dashes and lowercase characters for the domain path ("localization")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wpx-cron-manager-light.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin6,456 lines of code in 95 files:
LanguageFilesBlank linesComment linesLines of code
PHP671,4242,5975,041
CSS9012386
Markdown61090253
LESS44318249
PO File292126193
JSON400189
JavaScript33626145

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity10.43
▷ Minimum class complexity1.00
▷ Maximum class complexity82.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces21
Interfaces2
Traits0
Classes44
▷ Abstract classes1022.73%
▷ Concrete classes3477.27%
▷ Final classes25.88%
Methods261
▷ Static methods5219.92%
▷ Public methods20980.08%
▷ Protected methods4115.71%
▷ Private methods114.21%
Functions20
▷ Named functions1365.00%
▷ Anonymous functions735.00%
Constants11
▷ Global constants218.18%
▷ Class constants981.82%
▷ Public constants9100.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
3 PNG files occupy 0.23MB with 0.15MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png180.23KB48.38KB▼ 73.16%
assets/icon-128x128.png17.29KB6.36KB▼ 63.20%
assets/icon-256x256.png37.75KB13.13KB▼ 65.23%