78% leira-cron-jobs

Code Review | Cron Jobs

WordPress plugin Cron Jobs scored78%from 54 tests.

About plugin

  • Plugin page: leira-cron-jobs
  • Plugin version: 1.2.9
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.9
  • WordPress version: 6.3.1
  • First release: Aug 13, 2019
  • Latest release: May 5, 2022
  • Number of updates: 51
  • Update frequency: every 20.1 days
  • Top authors: arielhr1987 (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active /13,194 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.13MB] [CPU: ▼1.60ms] Passed 4 tests

Analyzing server-side resources used by Cron Jobs
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.09 ▲0.85
Dashboard /wp-admin3.46 ▲0.1652.50 ▲2.75
Posts /wp-admin/edit.php3.58 ▲0.2248.63 ▼1.19
Add New Post /wp-admin/post-new.php6.04 ▲0.1689.46 ▼2.53
Media Library /wp-admin/upload.php3.39 ▲0.1635.15 ▼3.52
Cron Jobs /wp-admin/tools.php?page=leira-cron-jobs3.4846.71

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Cron Jobs: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8314.48 ▲0.052.26 ▲0.3844.66 ▼1.15
Dashboard /wp-admin2,210 ▲254.90 ▼0.21100.70 ▼13.0341.99 ▼1.04
Posts /wp-admin/edit.php2,096 ▲72.05 ▲0.0636.16 ▼1.7135.71 ▲1.41
Add New Post /wp-admin/post-new.php1,545 ▲2018.26 ▼4.82638.17 ▼38.5056.00 ▼11.60
Media Library /wp-admin/upload.php1,392 ▲44.30 ▲0.15101.04 ▼13.0349.28 ▼1.00
Cron Jobs /wp-admin/tools.php?page=leira-cron-jobs2,0592.4040.3438.39

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/leira-cron-jobs/admin/partials/leira-cron-jobs-admin-display.php
    • > /wp-content/plugins/leira-cron-jobs/public/partials/leira-cron-jobs-public-display.php
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/leira-cron-jobs/admin/class-leira-cron-jobs-list-table.php on line 4
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/leira-cron-jobs/admin/class-leira-cron-jobs-list-table.php on line 4
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/leira-cron-jobs/admin/class-leira-cron-jobs-list-table.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
The official readme.txt might help

leira-cron-jobs/leira-cron-jobs.php Passed 13 tests

The principal PHP file in "Cron Jobs" v. 1.2.9 is loaded by WordPress automatically on each request
99 characters long description:
Cron Jobs is a simple, but powerful plugin that will help you to manage your site cron jobs easily.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,716 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP153291,0481,187
JavaScript375147266
PO File16274142
Sass121782
CSS24539

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity19.50
▷ Minimum class complexity1.00
▷ Maximum class complexity67.00
Average method complexity3.26
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods79
▷ Static methods33.80%
▷ Public methods5772.15%
▷ Protected methods2126.58%
▷ Private methods11.27%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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