Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/the-colour-clock/hex-background-clock.php+19
Methods with the same name as their class will not be constructors in a future version of PHP; hex_background_clock has a deprecated constructor
Server metrics [RAM: ▼1.92MB] [CPU: ▼51.53ms] Passed 4 tests
An overview of server-side resources used by The Colour Clock
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 4.79 ▼38.86 |
Dashboard /wp-admin | 2.08 ▼1.22 | 10.87 ▼38.40 |
Posts /wp-admin/edit.php | 2.08 ▼1.27 | 6.18 ▼39.18 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.80 | 5.35 ▼89.69 |
Media Library /wp-admin/upload.php | 2.08 ▼1.14 | 5.41 ▼28.35 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_hex_background_clock |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by The Colour Clock
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲45 | 13.18 ▼1.46 | 4.64 ▲2.78 | 42.23 ▼4.17 |
Dashboard /wp-admin | 2,206 ▲21 | 5.91 ▲0.05 | 111.32 ▼6.72 | 43.70 ▲0.25 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.98 ▼0.03 | 39.56 ▲2.01 | 34.32 ▼0.55 |
Add New Post /wp-admin/post-new.php | 1,547 ▲33 | 18.25 ▲0.57 | 607.63 ▼74.24 | 61.12 ▲12.14 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.18 ▲0.01 | 101.34 ▼0.93 | 44.12 ▼2.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/the-colour-clock/hex-background-clock.php+19
Methods with the same name as their class will not be constructors in a future version of PHP; hex_background_clock has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_uninstall_hook() in wp-content/plugins/the-colour-clock/hex-background-clock.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: wallpaper, hex, background changer, hexadecimal, colour...
the-colour-clock/hex-background-clock.php 85% from 13 tests
The entry point to "The Colour Clock" version 1.0.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 219 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("the-colour-clock.php" instead of "hex-background-clock.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin98 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 39 | 18 | 91 |
CSS | 1 | 0 | 0 | 7 |
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 code | 0.07 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
PNG images were not found in this plugin