Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▲3.73ms] Passed 4 tests
Analyzing server-side resources used by Colorlib 404 Customizer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 49.61 ▲7.00 |
Dashboard /wp-admin | 3.49 ▲0.19 | 50.06 ▲1.41 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 53.11 ▲3.31 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 101.05 ▲9.36 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 37.35 ▲3.20 |
Server storage [IO: ▲9.70MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 92 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
cnfp_settings |
Browser metrics Passed 4 tests
Checking browser requirements for Colorlib 404 Customizer
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲90 | 13.38 ▼1.01 | 2.11 ▼0.17 | 41.40 ▼5.27 |
Dashboard /wp-admin | 2,225 ▲37 | 5.85 ▲0.98 | 94.37 ▼20.57 | 40.13 ▼5.79 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.01 ▼0.02 | 39.40 ▲3.63 | 35.97 ▲4.33 |
Add New Post /wp-admin/post-new.php | 1,550 ▲17 | 23.07 ▼0.12 | 643.95 ▼38.94 | 49.66 ▼7.29 |
Media Library /wp-admin/upload.php | 1,398 ▲7 | 4.24 ▲0.04 | 99.20 ▼0.15 | 44.64 ▼3.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- cnfp_settings
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 22× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/colorlib-404-customizer/includes/colorlib-template.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/colorlib-404-customizer/templates/template_09/template_09.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/colorlib-404-customizer/templates/template_03/template_03.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/colorlib-404-customizer/templates/template_06/template_06.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/colorlib-404-customizer/templates/template_07/template_07.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/colorlib-404-customizer/templates/template_04/template_04.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/colorlib-404-customizer/templates/template_15/template_15.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/colorlib-404-customizer/templates/template_14/template_14.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/colorlib-404-customizer/templates/template_16/template_16.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/colorlib-404-customizer/templates/template_08/template_08.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: 404, 404 page, customize 404 page, 404 page customizer
colorlib-404-customizer/colorlib-404-customizer.php 92% from 13 tests
Analyzing the main PHP file in "Colorlib 404 Customizer" version 1.0.96
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 184 characters long)
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 plugin7,914 lines of code in 56 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 23 | 436 | 56 | 3,163 |
SVG | 1 | 0 | 0 | 2,671 |
PHP | 29 | 269 | 129 | 1,793 |
PO File | 1 | 73 | 100 | 176 |
JavaScript | 2 | 35 | 10 | 111 |
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.26 |
Average class complexity | 4.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 1 | 4.17% |
▷ Public methods | 21 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 12.50% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
24 PNG files occupy 3.46MB with 1.55MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
templates/template_08/template_08.png | 31.81KB | 14.36KB | ▼ 54.87% |
templates/template_06/template_06.png | 18.93KB | 10.36KB | ▼ 45.31% |
templates/template_05/template_05.png | 22.37KB | 12.15KB | ▼ 45.67% |
templates/template_13/template_13.png | 20.56KB | 12.02KB | ▼ 41.52% |
templates/template_14/template_14.png | 20.22KB | 12.96KB | ▼ 35.92% |