84% wp-cron-per-action

Code Review | WP Cron per Action

WordPress plugin WP Cron per Action scored84%from 54 tests.

About plugin

  • Plugin page: wp-cron-per-action
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.6.1
  • WordPress version: 6.3.1
  • First release: Nov 22, 2016
  • Latest release: Nov 25, 2016
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: miunosoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /725 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.00MB] [CPU: ▼11.95ms] Passed 4 tests

Analyzing server-side resources used by WP Cron per Action
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.54 ▲0.80
Dashboard /wp-admin3.31 ▼0.0345.02 ▼17.14
Posts /wp-admin/edit.php3.36 ▲0.0145.71 ▲1.34
Add New Post /wp-admin/post-new.php5.89 ▲0.0178.82 ▼27.92
Media Library /wp-admin/upload.php3.23 ▲0.0133.21 ▼3.54

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for WP Cron per Action
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.15 ▼1.251.66 ▼0.1245.32 ▲1.77
Dashboard /wp-admin2,203 ▲155.83 ▼0.05100.36 ▼9.0338.21 ▲0.55
Posts /wp-admin/edit.php2,092 ▼01.99 ▲0.0140.28 ▼2.7834.72 ▼3.67
Add New Post /wp-admin/post-new.php1,514 ▼1517.56 ▼0.85686.84 ▲80.4451.72 ▼10.73
Media Library /wp-admin/upload.php1,391 ▲94.23 ▲0.09102.02 ▲1.6644.25 ▼1.09

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-cron-per-action/wp-cron-per-action.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: crons, tools, cron job, cron jobs, cron...

wp-cron-per-action/wp-cron-per-action.php Passed 13 tests

The main PHP script in "WP Cron per Action" version 1.0.0 is automatically included on every request by WordPress
95 characters long description:
Ensures to load wp-cron.php per due action to avoid exceeding the PHP's maximum execution time.

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
No dangerous file extensions were detected127 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23773127

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.45
Average class complexity11.50
▷ Minimum class complexity5.00
▷ Maximum class complexity18.00
Average method complexity2.62
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods13
▷ Static methods17.69%
▷ Public methods646.15%
▷ Protected methods00.00%
▷ Private methods753.85%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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 images were found in this plugin