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
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.93ms] Passed 4 tests
An overview of server-side resources used by Force Admin Color Scheme
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 34.40 ▼5.42 |
Dashboard /wp-admin | 3.35 ▲0.05 | 44.72 ▼1.20 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 46.17 ▼2.31 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 79.74 ▼22.77 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 36.82 ▲2.92 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Force Admin Color Scheme
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.27 ▼1.37 | 3.98 ▲2.32 | 40.48 ▼1.97 |
Dashboard /wp-admin | 2,206 ▲15 | 4.86 ▼0.02 | 106.61 ▲6.62 | 39.14 ▼1.07 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▼0.00 | 40.03 ▲0.18 | 34.80 ▼0.32 |
Add New Post /wp-admin/post-new.php | 1,514 ▼9 | 23.54 ▲0.35 | 655.36 ▼3.38 | 60.38 ▲2.26 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.24 ▲0.06 | 94.92 ▼21.54 | 41.16 ▼7.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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/force-admin-color-scheme/tests/phpunit/bootstrap.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
require_once(/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/force-admin-color-scheme/tests/phpunit/bootstrap.php on line 29
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/force-admin-color-scheme/tests/phpunit/bootstrap.php on line 29
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: admin colors, staging, coffee2code, admin, color scheme
force-admin-color-scheme/force-admin-color-scheme.php Passed 13 tests
The main file in "Force Admin Color Scheme" v. 2.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
60 characters long description:
Force a single admin color scheme for all users of the site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin747 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 239 | 323 | 569 |
Markdown | 3 | 32 | 0 | 143 |
Bourne Shell | 1 | 6 | 2 | 21 |
XML | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 1.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 82 | |
▷ Static methods | 19 | 23.17% |
▷ Public methods | 80 | 97.56% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 2.44% |
Functions | 12 | |
▷ Named functions | 1 | 8.33% |
▷ Anonymous functions | 11 | 91.67% |
Constants | 3 | |
▷ Global constants | 3 | 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