Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼6.08ms] Passed 4 tests
Analyzing server-side resources used by Mimo Colors
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 35.70 ▼10.41 |
Dashboard /wp-admin | 3.58 ▲0.27 | 52.30 ▲1.40 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 51.79 ▲2.43 |
Add New Post /wp-admin/post-new.php | 5.65 ▼0.24 | 75.75 ▼16.40 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 36.75 ▲1.11 |
Mimo Colors /wp-admin/themes.php?page=mimo-colors-settings | 4.03 | 37.91 |
Server storage [IO: ▲1.45MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 83 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Mimo Colors
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲168 | 13.95 ▼0.70 | 9.10 ▲7.27 | 43.28 ▼1.42 |
Dashboard /wp-admin | 2,213 ▲25 | 5.88 ▼0.13 | 98.71 ▼5.16 | 39.70 ▼3.44 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.01 ▲0.04 | 38.69 ▼3.29 | 34.72 ▼2.38 |
Add New Post /wp-admin/post-new.php | 1,555 ▲22 | 23.17 ▼0.02 | 638.16 ▼71.03 | 51.31 ▼4.29 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.19 ▲0.01 | 95.74 ▼3.82 | 40.46 ▼4.60 |
Mimo Colors /wp-admin/themes.php?page=mimo-colors-settings | 1,185 | 2.62 | 56.11 | 45.16 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% 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 0% 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 take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/mimo-colors/public/views/public.php
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mimo-colors/includes/Widgets-Helper/wph-widget-class.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mimo-colors/admin/includes/WP-Contextual-Help/wp-contextual-help.php:141
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/mimo-colors/admin/views/admin.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mimo-colors/admin/includes/CMB2/init.php:72
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/mimo-colors/admin/includes/CMB2/bootstrap.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: colorize, custom colors, color customizer, extra colors, style...
mimo-colors/mimo-colors.php Passed 13 tests
The main file in "Mimo Colors" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
55 characters long description:
Add custom colors to elements with no coding knowledge.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin8,665 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 1,013 | 1,023 | 3,928 |
PHP | 28 | 1,399 | 3,025 | 3,837 |
JavaScript | 6 | 162 | 120 | 692 |
SVG | 3 | 0 | 0 | 207 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 27.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 107.00 |
Average method complexity | 3.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 26 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 283 | |
▷ Static methods | 35 | 12.37% |
▷ Public methods | 267 | 94.35% |
▷ Protected methods | 7 | 2.47% |
▷ Private methods | 9 | 3.18% |
Functions | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 3 | 50.00% |
▷ Class constants | 3 | 50.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected