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
Install script ran successfully
Server metrics [RAM: ▲0.43MB] [CPU: ▼0.40ms] Passed 4 tests
Analyzing server-side resources used by Cocoon Scenery Color
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.46 | 43.62 ▲2.77 |
Dashboard /wp-admin | 3.77 ▲0.46 | 45.79 ▲1.01 |
Posts /wp-admin/edit.php | 3.82 ▲0.46 | 47.00 ▼5.83 |
Add New Post /wp-admin/post-new.php | 6.29 ▲0.40 | 93.27 ▲1.98 |
Media Library /wp-admin/upload.php | 3.63 ▲0.40 | 34.50 ▲1.25 |
Server storage [IO: ▲3.91MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 77 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Cocoon Scenery Color
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.27 ▼1.13 | 1.74 ▼0.61 | 43.63 ▼4.02 |
Dashboard /wp-admin | 2,209 ▲24 | 4.83 ▼0.26 | 100.39 ▼4.48 | 39.78 ▼6.27 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 1.98 ▼0.07 | 37.34 ▼4.38 | 30.92 ▼6.30 |
Add New Post /wp-admin/post-new.php | 1,542 ▲13 | 18.45 ▲0.10 | 606.90 ▼19.65 | 53.65 ▼3.87 |
Media Library /wp-admin/upload.php | 1,382 ▼9 | 4.19 ▼0.11 | 94.89 ▼12.09 | 41.44 ▼3.70 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/themes/twentytwentyone/lib/_defins.php' (include_path='.:/usr/share/php') in wp-content/plugins/cocoon-scenery-color/modules/backup-download.php on line 13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: color, setting, cocoon, scenery
cocoon-scenery-color/cocoon-scenery-color.php 92% from 13 tests
The main PHP script in "Cocoon Scenery Color" version 1.3.6 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 450 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected5,519 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 164 | 796 | 2,142 |
PO File | 2 | 599 | 50 | 1,237 |
JSON | 44 | 5 | 0 | 1,007 |
JavaScript | 1 | 95 | 26 | 640 |
CSS | 2 | 145 | 158 | 493 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 120)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 93.67 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 238.00 |
Average method complexity | 3.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 120.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 95 | |
▷ Static methods | 10 | 10.53% |
▷ Public methods | 24 | 25.26% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 71 | 74.74% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 168 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 168 | 100.00% |
▷ Public constants | 168 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
15 compressed PNG files occupy 3.52MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
options/summer-green.png | 361.67KB | 390.43KB | 0.00% |
options/dark-blue.png | 207.77KB | 231.23KB | 0.00% |
options/vermilion-black.png | 228.83KB | 252.98KB | 0.00% |
options/pastel-pink.png | 217.10KB | 239.99KB | 0.00% |
images/sample-color-inside.png | 79.07KB | 25.83KB | ▼ 67.33% |