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.09MB] [CPU: ▼7.23ms] Passed 4 tests
Server-side resources used by Color Change For Elementor
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.17 ▼4.82 |
Dashboard /wp-admin | 3.39 ▲0.09 | 45.95 ▲1.24 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 43.96 ▲0.14 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.22 | 81.80 ▼23.23 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 32.80 ▼1.00 |
Server storage [IO: ▲0.37MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 43 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
winter_mvc_active_plugins |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Color Change For Elementor
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,905 ▲170 | 13.60 ▼1.20 | 7.79 ▲6.01 | 40.26 ▼6.26 |
Dashboard /wp-admin | 2,225 ▲36 | 5.80 ▲0.82 | 104.65 ▼20.40 | 39.79 ▼4.87 |
Posts /wp-admin/edit.php | 2,111 ▲22 | 2.05 ▲0.01 | 38.99 ▲0.61 | 34.35 ▲3.63 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 18.45 ▼4.76 | 607.85 ▼22.83 | 71.73 ▲15.48 |
Media Library /wp-admin/upload.php | 1,410 ▲22 | 4.22 ▲0.05 | 97.20 ▼0.03 | 45.83 ▲4.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- winter_mvc_active_plugins
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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 fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/color-changer-elementor/public/partials/color-changer-elementor-public-display.php
- > /wp-content/plugins/color-changer-elementor/admin/partials/color-changer-elementor-admin-display.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/color-changer-elementor/vendor/Winter_MVC/init.php:16
- > 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 issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Invalid URI ("")
- Screenshots: Screenshot #1 (Change colors screenshot) image missing
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== color-changer-elementor ===
)
color-changer-elementor/color-changer-elementor.php Passed 13 tests
"Color Change For Elementor" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
123 characters long description:
Plugin will help you Replace / Change Colors defined inside Elementor Editor on all pages automatically in one simple step
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
There were no executable files found in this plugin2,796 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 839 | 1,359 | 2,371 |
JavaScript | 5 | 98 | 109 | 265 |
CSS | 3 | 24 | 8 | 151 |
HTML | 1 | 2 | 0 | 9 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 12.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 2.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 90 | |
▷ Static methods | 3 | 3.33% |
▷ Public methods | 81 | 90.00% |
▷ Protected methods | 1 | 1.11% |
▷ Private methods | 8 | 8.89% |
Functions | 85 | |
▷ Named functions | 85 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
PNG images were not found in this plugin