Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.32MB] [CPU: ▼1.08ms] Passed 4 tests
A check of server-side resources used by WP Crontrol Hours
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.30 | 40.59 ▲0.64 |
Dashboard /wp-admin | 3.64 ▲0.34 | 48.49 ▼1.14 |
Posts /wp-admin/edit.php | 3.75 ▲0.40 | 49.34 ▼0.71 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.33 | 83.29 ▼3.12 |
Media Library /wp-admin/upload.php | 3.56 ▲0.33 | 38.92 ▲6.30 |
Cron Hours /wp-admin/tools.php?page=crontrol-hours | 3.60 | 38.09 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
crontrol_hours_duration |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Crontrol Hours
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲32 | 13.98 ▼0.37 | 1.77 ▲0.03 | 43.90 ▼2.41 |
Dashboard /wp-admin | 2,199 ▲19 | 5.66 ▼0.02 | 84.76 ▼3.71 | 36.24 ▼6.99 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.97 ▲0.03 | 39.81 ▲0.04 | 36.25 ▼3.31 |
Add New Post /wp-admin/post-new.php | 1,529 ▼0 | 23.01 ▼0.28 | 681.36 ▲56.29 | 66.09 ▲11.19 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.21 ▲0.00 | 111.12 ▲3.87 | 48.01 ▲2.47 |
Cron Hours /wp-admin/tools.php?page=crontrol-hours | 1,321 | 2.05 | 29.05 | 63.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- crontrol_hours_duration
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Please fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/crontrol-hours/templates/dashboard-support.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/crontrol-hours/templates/dashboard-admin.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
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
7 plugin tags: limit hours, business hours, cron, after hours, wp-cron...
crontrol-hours/crontrol-hours.php Passed 13 tests
This is the main PHP file of "WP Crontrol Hours" version 2.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
87 characters long description:
Take control of your CRON jobs by restricting them to your website's low traffic hours.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin2,529 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 89 | 627 | 1,298 |
CSS | 4 | 178 | 64 | 903 |
JavaScript | 2 | 4 | 71 | 328 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 58.33 |
▷ Minimum class complexity | 38.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 5.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 23 | 54.76% |
▷ Public methods | 39 | 92.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 7.14% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 compressed PNG files occupy 0.01MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/admin-logo.png | 4.75KB | 5.02KB | 0.00% |
assets/images/check.png | 0.55KB | 0.57KB | 0.00% |
assets/images/kofi-cup.png | 3.85KB | 4.10KB | 0.00% |