74% action-scheduler

Code Review | Action Scheduler

WordPress plugin Action Scheduler scored 74% from 54 tests.

About plugin

  • Plugin page: action-scheduler
  • Plugin version: 3.4.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.7
  • WordPress version: 5.9.2
  • First release: Jul 14, 2020
  • Latest release: Nov 1, 2021
  • Number of updates: 8
  • Update frequency: every 59.4 days
  • Top authors: barry.hughes (50%)wpmuguru (37.5%)peterfabian1000 (25%)vedjain (25%)

Code review

54 tests

User reviews

4 reviews

Install metrics

3,000+ active / 22,917 total downloads


Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.95MB] [CPU: ▼303.19ms] Passed 4 tests

An overview of server-side resources used by Action Scheduler
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.48 ▲0.9764.13 ▲14.47
Dashboard /wp-admin4.39 ▲0.9841.90 ▲7.04
Posts /wp-admin/edit.php4.61 ▲0.9744.96 ▲6.97
Add New Post /wp-admin/post-new.php7.85 ▲0.87101.90 ▼1,233.31
Media Library /wp-admin/upload.php4.27 ▲0.9730.37 ▲6.53
Scheduled Actions /wp-admin/tools.php?page=action-scheduler4.4542.32

Server storage [IO: ▲0.40MB] [DB: ▲0.01MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 87 new files
Database: 4 new tables, 4 new options
New tables
New WordPress options

Browser metrics Passed 4 tests

Action Scheduler: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,768 ▲2615.81 ▲0.166.17 ▼0.442.98 ▲0.53
Dashboard /wp-admin2,897 ▲366.08 ▼0.09118.62 ▼21.30157.82 ▼14.34
Posts /wp-admin/edit.php2,690 ▼43.23 ▼0.0066.18 ▼1.33141.27 ▼6.53
Add New Post /wp-admin/post-new.php1,664 ▼2616.09 ▼4.54426.44 ▼39.82157.31 ▲8.25
Media Library /wp-admin/upload.php1,703 ▲55.54 ▲0.00139.99 ▼4.61185.50 ▲3.14
Scheduled Actions /wp-admin/tools.php?page=action-scheduler1,5562.5656.57110.48

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie tables were found after uninstall: 4 tables
    • wp_actionscheduler_actions
    • wp_actionscheduler_claims
    • wp_actionscheduler_logs
    • wp_actionscheduler_groups
  • This plugin did not uninstall successfully, leaving 4 options in the database
    • schema-ActionScheduler_StoreSchema
    • action_scheduler_hybrid_store_demarkation
    • schema-ActionScheduler_LoggerSchema
    • action_scheduler_lock_async-request-runner

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 42× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Lock' not found in wp-content/plugins/action-scheduler/classes/ActionScheduler_OptionLock.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'CronExpression_FieldInterface' not found in wp-content/plugins/action-scheduler/lib/cron-expression/CronExpression_AbstractField.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Store' not found in wp-content/plugins/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Logger' not found in wp-content/plugins/action-scheduler/classes/data-stores/ActionScheduler_DBLogger.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_DBStore' not found in wp-content/plugins/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_AdminView_Deprecated' not found in wp-content/plugins/action-scheduler/classes/ActionScheduler_AdminView.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Store' not found in wp-content/plugins/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_QueueRunner' not found in wp-content/plugins/action-scheduler/classes/WP_CLI/ActionScheduler_WPCLI_QueueRunner.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/action-scheduler/lib/cron-expression/CronExpression_YearField.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Logger' not found in wp-content/plugins/action-scheduler/classes/data-stores/ActionScheduler_wpCommentLogger.php:6

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


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: scheduler, cron

action-scheduler/action-scheduler.php Passed 13 tests

The main file in "Action Scheduler" v. 3.4.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
57 characters long description:
A robust scheduling library for use in WordPress plugins.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected5,908 lines of code in 83 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity9.94
▷ Minimum class complexity1.00
▷ Maximum class complexity81.00
Average method complexity2.30
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
▷ Abstract classes1520.00%
▷ Concrete classes6080.00%
▷ Final classes00.00%
▷ Static methods6210.86%
▷ Public methods41973.38%
▷ Protected methods13423.47%
▷ Private methods183.15%
▷ Named functions1869.23%
▷ Anonymous functions830.77%
▷ Global constants00.00%
▷ Class constants33100.00%
▷ Public constants33100.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