58% wp-cron-status-checker

Code Review | WP-Cron Status Checker

WordPress plugin WP-Cron Status Checker scored58%from 54 tests.

About plugin

  • Plugin page: wp-cron-status-ch...
  • Plugin version: 1.2.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Oct 22, 2016
  • Latest release: Jul 10, 2023
  • Number of updates: 34
  • Update frequency: every 72.1 days
  • Top authors: webheadllc (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

5,000+ active /80,879 total downloads

Benchmarks

Plugin footprint 47% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.54MB] [CPU: ▼0.33ms] 75% from 4 tests

Server-side resources used by WP-Cron Status Checker
The following require your attention
  • CPU: Try to keep total CPU usage under 500.00ms (currently 1,994.39ms on /wp-admin/options-general.php?page=wcsc-options)
PageMemory (MB)CPU Time (ms)
Home /4.05 ▲0.5944.72 ▲3.63
Dashboard /wp-admin4.53 ▲1.2257.35 ▲9.62
Posts /wp-admin/edit.php3.96 ▲0.6052.42 ▼3.14
Add New Post /wp-admin/post-new.php6.42 ▲0.5492.73 ▼11.29
Media Library /wp-admin/upload.php3.67 ▲0.4442.89 ▲9.46
WP Cron Status /wp-admin/options-general.php?page=wcsc-options3.911,994.39
WP Cron Status /wp-admin/tools.php?page=wcsc_status4.3043.13
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius4.0439.34

Server storage [IO: ▲3.24MB] [DB: ▲0.08MB] Passed 3 tests

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 197 new files
Database: 2 new tables, 10 new options
New tables
wp_wcsc_error_logs
wp_wcsc_logs
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
fs_accounts
fs_debug_mode
theysaidso_admin_options
db_upgraded
widget_recent-comments
fs_active_plugins
_wcsc_version

Browser metrics Passed 4 tests

Checking browser requirements for WP-Cron Status Checker
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,896 ▲13514.42 ▼0.141.83 ▲0.0332.48 ▼9.59
Dashboard /wp-admin2,299 ▲1225.61 ▲0.0389.09 ▼0.7041.06 ▼2.24
Posts /wp-admin/edit.php2,126 ▲261.98 ▼0.0234.97 ▼5.7234.42 ▼4.46
Add New Post /wp-admin/post-new.php1,537 ▲1123.23 ▼0.02681.72 ▼10.5952.40 ▼2.52
Media Library /wp-admin/upload.php1,425 ▲284.12 ▼0.03113.37 ▼6.5446.95 ▼0.72
WP Cron Status /wp-admin/options-general.php?page=wcsc-options9851.6525.6761.08
WP Cron Status /wp-admin/tools.php?page=wcsc_status1,2031.7732.4142.03
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,0801.6623.3727.64

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/wp-cron-status-checker/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • Zombie tables were found after uninstall: 2 tables
    • wp_wcsc_error_logs
    • wp_wcsc_logs
  • The uninstall procedure has failed, leaving 10 options in the database
    • can_compress_scripts
    • fs_active_plugins
    • widget_recent-posts
    • theysaidso_admin_options
    • fs_debug_mode
    • fs_accounts
    • db_upgraded
    • widget_recent-comments
    • _wcsc_version
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-cron-status-checker/views/options-page.php
  • 15× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: wcsc in wp-content/plugins/wp-cron-status-checker/views/status-page-by-cron.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-cron-status-checker/inc/cron-checker.php:39
    • > PHP Fatal error
      Uncaught Error: Call to a member function summarize_logs_by_cron() on null in wp-content/plugins/wp-cron-status-checker/views/status-page-by-cron-errors.php:2
    • > PHP Fatal error
      Uncaught Error: Call to a member function summarize_logs_by_hooks() on null in wp-content/plugins/wp-cron-status-checker/views/status-page-by-hooks-errors.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-cron-status-checker/inc/cron-checker.php:39
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-cron-status-checker/views/status-page.php:9
    • > PHP Notice
      Undefined variable: wcsc in wp-content/plugins/wp-cron-status-checker/views/status-page-by-hooks-errors.php on line 2
    • > PHP Notice
      Undefined variable: wcsc in wp-content/plugins/wp-cron-status-checker/views/status-page-by-cron-errors.php on line 2
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/wp-cron-status-checker/views/status-page-by-cron-base.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-cron-status-checker/views/dashboard.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
Please take inspiration from this readme.txt

wp-cron-status-checker/wp-cron-status-checker.php Passed 13 tests

Analyzing the main PHP file in "WP-Cron Status Checker" version 1.2.5
83 characters long description:
If WP-Cron runs important things for you, you better make sure WP-Cron always runs!

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin35,760 lines of code in 153 files:
LanguageFilesBlank linesComment linesLines of code
PHP1338,26317,63035,549
JavaScript53459196
CSS150015

PHP code 50% from 2 tests

An overview of cyclomatic complexity and code structure
Please tend to the following items
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity91.72
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.57
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes50
▷ Abstract classes24.00%
▷ Concrete classes4896.00%
▷ Final classes00.00%
Methods1,295
▷ Static methods22617.45%
▷ Public methods89869.34%
▷ Protected methods171.31%
▷ Private methods38029.34%
Functions155
▷ Named functions14492.90%
▷ Anonymous functions117.10%
Constants163
▷ Global constants10665.03%
▷ Class constants5734.97%
▷ Public constants57100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
freemius/assets/img/wp-cron-status-checker.png32.02KB16.88KB▼ 47.30%