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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 41.09 ▲0.85 |
Dashboard /wp-admin | 3.46 ▲0.16 | 52.50 ▲2.75 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 48.63 ▼1.19 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.16 | 89.46 ▼2.53 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 35.15 ▼3.52 |
Cron Jobs /wp-admin/tools.php?page=leira-cron-jobs | 3.48 | 46.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 14.48 ▲0.05 | 2.26 ▲0.38 | 44.66 ▼1.15 |
Dashboard /wp-admin | 2,210 ▲25 | 4.90 ▼0.21 | 100.70 ▼13.03 | 41.99 ▼1.04 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.05 ▲0.06 | 36.16 ▼1.71 | 35.71 ▲1.41 |
Add New Post /wp-admin/post-new.php | 1,545 ▲20 | 18.26 ▼4.82 | 638.17 ▼38.50 | 56.00 ▼11.60 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.30 ▲0.15 | 101.04 ▼13.03 | 49.28 ▼1.00 |
Cron Jobs /wp-admin/tools.php?page=leira-cron-jobs | 2,059 | 2.40 | 40.34 | 38.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 329 | 1,048 | 1,187 |
JavaScript | 3 | 75 | 147 | 266 |
PO File | 1 | 62 | 74 | 142 |
Sass | 1 | 21 | 7 | 82 |
CSS | 2 | 4 | 5 | 39 |
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 code | 0.43 |
Average class complexity | 19.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 3.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 79 | |
▷ Static methods | 3 | 3.80% |
▷ Public methods | 57 | 72.15% |
▷ Protected methods | 21 | 26.58% |
▷ Private methods | 1 | 1.27% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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