Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- This plugin did not install gracefully
- > User deprecated in wp-includes/functions.php+5453
Function get_all_category_ids is deprecated since version 4.0.0! Use get_terms() instead.
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.36ms] Passed 4 tests
A check of server-side resources used by Colored Categories
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.55 ▲1.53 |
Dashboard /wp-admin | 3.32 ▲0.01 | 42.71 ▼5.83 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 44.05 ▼2.39 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 87.99 ▼7.62 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.17 ▼1.60 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
colored-categories |
Browser metrics Passed 4 tests
Colored Categories: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲18 | 14.67 ▲0.29 | 1.92 ▲0.24 | 44.01 ▲4.43 |
Dashboard /wp-admin | 2,195 ▲18 | 5.61 ▲0.08 | 82.15 ▼7.76 | 40.10 ▲0.21 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▼0.01 | 40.43 ▲3.16 | 39.14 ▲2.40 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.07 ▲0.06 | 685.37 ▲15.21 | 50.56 ▼16.74 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.21 ▼0.00 | 101.79 ▼11.45 | 46.43 ▼0.30 |
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
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- colored-categories
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function WPSE\\coloredcategories\\add_action() in wp-content/plugins/colored-categories/colored-categories.php:21
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (This is a screenshot close up of the colored cateogries.), #2 (Fullscreen view from the category screen.)
colored-categories/colored-categories.php Passed 13 tests
"Colored Categories" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
36 characters long description:
Adds a custom color to each category
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 plugin106 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 22 | 32 | 73 |
JavaScript | 1 | 8 | 5 | 33 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.22MB with 0.15MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot2.png | 148.84KB | 48.90KB | ▼ 67.15% |
screenshot1.png | 72.09KB | 20.28KB | ▼ 71.87% |