79% advanced-cron-manager

Code Review | Advanced Cron Manager - debug & control

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

About plugin

  • Plugin page: advanced-cron-man...
  • Plugin version: 2.5.2
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.3
  • WordPress version: 6.3.1
  • First release: Feb 24, 2014
  • Latest release: Jul 26, 2023
  • Number of updates: 77
  • Update frequency: every 44.7 days
  • Top authors: Kubitomakita (92.21%)bracketspace (9.09%)

Code review

54 tests

User reviews

35 reviews

Install metrics

30,000+ active / 506,168 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼7.11ms] Passed 4 tests

Server-side resources used by Advanced Cron Manager - debug & control
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0833.18 ▼10.54
Dashboard /wp-admin3.38 ▲0.0845.63 ▼2.14
Posts /wp-admin/edit.php3.49 ▲0.1446.34 ▼4.08
Add New Post /wp-admin/post-new.php5.96 ▲0.0885.99 ▼11.69
Media Library /wp-admin/upload.php3.30 ▲0.0838.91 ▲4.02
Cron Manager /wp-admin/tools.php?page=advanced-cron-manager3.3637.26

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 66 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Advanced Cron Manager - debug & control
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.12 ▼1.421.53 ▼0.3038.36 ▼9.36
Dashboard /wp-admin2,210 ▲224.81 ▼0.10109.63 ▲0.2342.01 ▼4.92
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0243.11 ▲6.2634.97 ▲1.75
Add New Post /wp-admin/post-new.php1,551 ▲3723.15 ▲5.68658.43 ▼36.1854.12 ▼5.48
Media Library /wp-admin/upload.php1,392 ▲44.19 ▼0.0294.48 ▼22.2841.35 ▼8.78
Cron Manager /wp-admin/tools.php?page=advanced-cron-manager3,0702.7151.6059.52

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

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
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 4× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/advanced-cron-manager/views/parts/events/tabs/listeners.php
    • > /wp-content/plugins/advanced-cron-manager/views/elements/preview-modal.php
    • > /wp-content/plugins/advanced-cron-manager/views/forms/footer.php
    • > /wp-content/plugins/advanced-cron-manager/views/elements/slidebar.php
  • 24× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > 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 esc_html_e() in wp-content/plugins/advanced-cron-manager/views/parts/events/tabs/logs.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/section.php:13
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/advanced-cron-manager/views/forms/schedule/add.php:10
    • > 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
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/advanced-cron-manager/views/forms/header.php:10
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/advanced-cron-manager/views/forms/event/add.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'underDEV\\Utils\\Cache\\Cache' not found in wp-content/plugins/advanced-cron-manager/vendor/underdev/utils/src/Cache/ObjectCache.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: manager, cron jobs, cron, wp cron, crontrol...

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

This is the main PHP file of "Advanced Cron Manager - debug & control" version 2.5.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
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 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected3,294 lines of code in 81 files:
LanguageFilesBlank linesComment linesLines of code
PHP641,0722,0132,657
PO File65992296
Markdown3890206
JSON10084
XML15341
JavaScript4088
CSS20162

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity10.39
▷ Minimum class complexity1.00
▷ Maximum class complexity53.00
Average method complexity2.45
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces10
Interfaces1
Traits0
Classes30
▷ Abstract classes00.00%
▷ Concrete classes30100.00%
▷ Final classes00.00%
Methods186
▷ Static methods2111.29%
▷ Public methods17895.70%
▷ Protected methods21.08%
▷ Private methods63.23%
Functions28
▷ Named functions13.57%
▷ Anonymous functions2796.43%
Constants3
▷ Global constants266.67%
▷ Class constants133.33%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected