Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼144.22ms] Passed 4 tests
This is a short check of server-side resources used by Chrome Theme Color Changer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.03 | 36.56 ▲0.19 |
Dashboard /wp-admin | 3.08 ▲0.03 | 48.93 ▼4.62 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 48.19 ▼4.01 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 101.20 ▼568.45 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 35.04 ▲1.01 |
Theme color /wp-admin/options-general.php?page=chrome-theme-color-changer | 3.00 | 28.98 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Chrome Theme Color Changer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲136 | 15.88 ▲0.29 | 10.68 ▼4.31 | 56.54 ▼2.17 |
Dashboard /wp-admin | 2,975 ▲41 | 5.93 ▼0.08 | 157.50 ▼7.83 | 116.68 ▼2.83 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▲0.00 | 65.94 ▼7.85 | 89.83 ▲0.70 |
Add New Post /wp-admin/post-new.php | 1,686 ▲3 | 18.47 ▼0.23 | 397.67 ▼32.28 | 107.60 ▼3.84 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.01 ▼0.03 | 162.23 ▲2.05 | 117.60 ▲3.33 |
Theme color /wp-admin/options-general.php?page=chrome-theme-color-changer | 1,062 | 2.33 | 53.26 | 59.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% 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 no errors were found, 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
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chrome-theme-color-changer/chrome-theme-color-changer.php:117
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/chrome-theme-color-changer/res/templates/onerror.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/chrome-theme-color-changer/res/templates/updated.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/chrome-theme-color-changer/res/templates/form.php:5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=chrome-theme-color-changer
- > Network (severe)
wp-content/plugins/chrome-theme-color-changer/res/lib/jscolor.min.js?ver=5.8.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: meta, admin
chrome-theme-color-changer/chrome-theme-color-changer.php 92% from 13 tests
"Chrome Theme Color Changer" version 1.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Domain Path: The domain path points to a folder that does not exist ("/res/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,639 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 345 | 173 | 1,442 |
PHP | 4 | 24 | 10 | 114 |
JSON | 1 | 0 | 0 | 24 |
Sass | 1 | 5 | 0 | 23 |
CSS | 1 | 0 | 1 | 15 |
YAML | 1 | 5 | 0 | 14 |
Markdown | 1 | 3 | 0 | 7 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 1 | 8.33% |
▷ Public methods | 8 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 33.33% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected