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
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼3.92ms] Passed 4 tests
Server-side resources used by Colorful Categories
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 40.02 ▲0.76 |
Dashboard /wp-admin | 3.41 ▲0.10 | 48.45 ▲0.01 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 45.02 ▼7.36 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 79.94 ▼9.08 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 36.05 ▲4.02 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
colorful-categories-adbv |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_colorful_categories_widget |
Browser metrics Passed 4 tests
Colorful Categories: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.34 ▼0.03 | 1.83 ▼0.00 | 44.93 ▲5.48 |
Dashboard /wp-admin | 2,195 ▲21 | 5.51 ▼0.07 | 98.02 ▲11.43 | 43.48 ▲0.23 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▲0.02 | 33.52 ▼3.19 | 34.21 ▼3.45 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.57 ▲0.37 | 665.06 ▼27.09 | 51.50 ▼4.63 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.12 ▼0.01 | 101.19 ▼13.42 | 45.24 ▼5.06 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 8 options
- widget_recent-comments
- widget_colorful_categories_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- colorful-categories-adbv
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/colorful-categories/widget.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/colorful-categories/colorful-categories.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 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
4 plugin tags: colourful categories, categories, coloured, widget
colorful-categories/colorful-categories.php 92% from 13 tests
The main PHP script in "Colorful Categories" version 2.0.19 is automatically included on every request by WordPress
Please take the time to fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
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 plugin568 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 91 | 153 | 544 |
JavaScript | 1 | 7 | 0 | 24 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 28.50 |
▷ Minimum class complexity | 25.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 7 | 31.82% |
▷ Public methods | 21 | 95.45% |
▷ Protected methods | 1 | 4.55% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.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
No PNG files were detected