74% migrate-wp-cron-to-action-scheduler

Code Review | Advanced Cron Scheduler for WordPress

WordPress plugin Advanced Cron Scheduler for WordPress scored74%from 54 tests.

About plugin

  • Plugin page: migrate-wp-cron-t...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3
  • WordPress version: 6.3.1
  • First release: Mar 3, 2021
  • Latest release: Jun 25, 2023
  • Number of updates: 22
  • Update frequency: every 38.4 days
  • Top authors: infosatech (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /3,252 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲1.27MB] [CPU: ▲11.50ms] Passed 4 tests

Analyzing server-side resources used by Advanced Cron Scheduler for WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.75 ▲1.2855.22 ▲14.23
Dashboard /wp-admin4.58 ▲1.2762.08 ▲10.06
Posts /wp-admin/edit.php4.63 ▲1.2763.06 ▲16.85
Add New Post /wp-admin/post-new.php7.16 ▲1.2797.77 ▲4.85
Media Library /wp-admin/upload.php4.50 ▲1.2755.05 ▲19.42
Scheduled Actions /wp-admin/tools.php?page=action-scheduler4.6655.16

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 117 new files
Database: 4 new tables, 11 new options
New tables
wp_actionscheduler_actions
wp_actionscheduler_logs
wp_actionscheduler_groups
wp_actionscheduler_claims
New WordPress options
schema-ActionScheduler_LoggerSchema
action_scheduler_lock_async-request-runner
can_compress_scripts
widget_recent-posts
schema-ActionScheduler_StoreSchema
theysaidso_admin_options
widget_theysaidso_widget
acswp_plugin_installed_time
db_upgraded
action_scheduler_hybrid_store_demarkation
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Advanced Cron Scheduler for WordPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲8213.28 ▼1.022.04 ▲0.0143.34 ▼0.10
Dashboard /wp-admin2,210 ▲214.86 ▼0.09111.83 ▼8.1841.61 ▼3.49
Posts /wp-admin/edit.php2,093 ▲72.01 ▼0.1237.21 ▲0.6337.56 ▲4.06
Add New Post /wp-admin/post-new.php1,545 ▲1718.27 ▼0.15662.93 ▼3.0952.83 ▼1.58
Media Library /wp-admin/upload.php1,392 ▲44.21 ▼0.0196.08 ▼12.5942.62 ▼3.15
Scheduled Actions /wp-admin/tools.php?page=action-scheduler1,2411.8127.4828.33

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure failed, leaving 4 tables in the database
    • wp_actionscheduler_groups
    • wp_actionscheduler_logs
    • wp_actionscheduler_actions
    • wp_actionscheduler_claims
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • action_scheduler_hybrid_store_demarkation
    • schema-ActionScheduler_LoggerSchema
    • widget_theysaidso_widget
    • schema-ActionScheduler_StoreSchema
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • 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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
Almost there! Just fix the following items
  • 43× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/migrate-wp-cron-to-action-scheduler/vendor/woocommerce/action-scheduler/classes/WP_CLI/ActionScheduler_WPCLI_Clean_Command.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_Schedule' not found in wp-content/plugins/migrate-wp-cron-to-action-scheduler/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Abstract_RecurringSchedule.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/migrate-wp-cron-to-action-scheduler/vendor/woocommerce/action-scheduler/lib/cron-expression/CronExpression_DayOfWeekField.php:18
    • > PHP Fatal error
      Uncaught Error: Interface 'ActionScheduler_Schedule' not found in wp-content/plugins/migrate-wp-cron-to-action-scheduler/vendor/woocommerce/action-scheduler/deprecated/ActionScheduler_Schedule_Deprecated.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Store' not found in wp-content/plugins/migrate-wp-cron-to-action-scheduler/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_RecurringSchedule' not found in wp-content/plugins/migrate-wp-cron-to-action-scheduler/vendor/woocommerce/action-scheduler/classes/schedules/ActionScheduler_IntervalSchedule.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_SimpleSchedule' not found in wp-content/plugins/migrate-wp-cron-to-action-scheduler/vendor/woocommerce/action-scheduler/classes/schedules/ActionScheduler_CanceledSchedule.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_Schema' not found in wp-content/plugins/migrate-wp-cron-to-action-scheduler/vendor/woocommerce/action-scheduler/classes/schema/ActionScheduler_StoreSchema.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Schedule_Deprecated' not found in wp-content/plugins/migrate-wp-cron-to-action-scheduler/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Abstract_Schedule.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Store' not found in wp-content/plugins/migrate-wp-cron-to-action-scheduler/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

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
5 plugin tags: cron, debug, cron manager, wp cron, scheduler

migrate-wp-cron-to-action-scheduler/migrate-wp-cron-to-action-scheduler.php Passed 13 tests

The entry point to "Advanced Cron Scheduler for WordPress" version 1.1.0 is a PHP file that has certain tags in its header comment area
124 characters long description:
The Advanced Cron Scheduler plugin helps to easily replace or migrate Native WordPress Cron to the Action Scheduler Library.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected7,969 lines of code in 111 files:
LanguageFilesBlank linesComment linesLines of code
PHP1102,0046,3597,920
JSON10049

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity11.05
▷ Minimum class complexity1.00
▷ Maximum class complexity96.00
Average method complexity2.44
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces8
Interfaces3
Traits3
Classes92
▷ Abstract classes1516.30%
▷ Concrete classes7783.70%
▷ Final classes22.60%
Methods708
▷ Static methods8712.29%
▷ Public methods51072.03%
▷ Protected methods15922.46%
▷ Private methods395.51%
Functions33
▷ Named functions1957.58%
▷ Anonymous functions1442.42%
Constants38
▷ Global constants513.16%
▷ Class constants3386.84%
▷ Public constants33100.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
There are no PNG files in this plugin