89% advanced-cron-manager

Code Review | Advanced Cron Manager - debug & control

WordPress plugin Advanced Cron Manager - debug & control scored 89% from 54 tests.

About plugin

  • Plugin page: advanced-cron-man...
  • Plugin version: 2.4.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.9
  • WordPress version: 5.9.2
  • First release: Feb 24, 2014
  • Latest release: Dec 31, 2021
  • Number of updates: 73
  • Update frequency: every 39.3 days
  • Top authors: Kubitomakita (95.89%)bracketspace (5.48%)

Code review

54 tests

User reviews

34 reviews

Install metrics

30,000+ active / 374,597 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.41MB] [CPU: ▼289.11ms] Passed 4 tests

An overview of server-side resources used by Advanced Cron Manager - debug & control
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.96 ▲0.4558.11 ▲5.02
Dashboard /wp-admin3.80 ▲0.3941.04 ▲7.82
Posts /wp-admin/edit.php4.08 ▲0.4438.45 ▲2.95
Add New Post /wp-admin/post-new.php7.32 ▲0.35101.08 ▼1,160.62
Media Library /wp-admin/upload.php3.74 ▲0.4524.36 ▼3.79
Cron Manager /wp-admin/tools.php?page=advanced-cron-manager3.8230.39

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Advanced Cron Manager - debug & control
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,788 ▲3416.01 ▲0.406.26 ▲0.252.42 ▼0.04
Dashboard /wp-admin2,897 ▲396.12 ▼0.07116.21 ▼20.64156.73 ▼5.31
Posts /wp-admin/edit.php2,693 ▲53.24 ▲0.0262.48 ▼1.16139.69 ▼2.90
Add New Post /wp-admin/post-new.php1,664 ▲2916.19 ▼2.02389.46 ▼23.66152.01 ▼5.99
Media Library /wp-admin/upload.php1,700 ▲55.55 ▲0.06143.82 ▲4.95190.84 ▲4.04
Cron Manager /wp-admin/tools.php?page=advanced-cron-manager4,2693.6374.68212.53

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/advanced-cron-manager/views/elements/slidebar.php
  • 25× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/advanced-cron-manager/advanced-cron-manager.php:22
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/advanced-cron-manager/views/parts/schedules/row.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'underDEV\\Utils\\Cache\\Cache' not found in wp-content/plugins/advanced-cron-manager/vendor/underdev/utils/src/Cache/Transient.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/advanced-cron-manager/views/parts/events/tabs/schedule.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/advanced-cron-manager/views/parts/searchbox.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/advanced-cron-manager/views/wrapper.php:11
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/advanced-cron-manager/views/forms/schedule/edit.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/advanced-cron-manager/views/elements/add-schedule-button.php:10
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/advanced-cron-manager/views/parts/events/row.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/advanced-cron-manager/views/misc/notification-promo.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: cron jobs, manager, cron manager, crontrol, cron...

advanced-cron-manager/advanced-cron-manager.php Passed 13 tests

The principal PHP file in "Advanced Cron Manager - debug & control" v. 2.4.2 is loaded by WordPress automatically on each request
49 characters long description:
View, pause, remove, edit and add WP Cron events.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin3,168 lines of code in 78 files:
LanguageFilesBlank linesComment linesLines of code
PHP621,0461,9572,556
PO File65992296
Markdown2710181
JSON10084
XML15341
JavaScript4088
CSS21162

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity10.26
▷ Minimum class complexity1.00
▷ Maximum class complexity53.00
Average method complexity2.48
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces10
Interfaces1
Traits0
Classes30
▷ Abstract classes00.00%
▷ Concrete classes30100.00%
▷ Final classes00.00%
Methods182
▷ Static methods1910.44%
▷ Public methods17596.15%
▷ Protected methods21.10%
▷ Private methods52.75%
Functions27
▷ Named functions27.41%
▷ Anonymous functions2592.59%
Constants3
▷ Global constants266.67%
▷ Class constants133.33%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin