Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼5.58ms] Passed 4 tests
This is a short check of server-side resources used by Add Admin CSS
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 39.04 ▼2.83 |
Dashboard /wp-admin | 3.51 ▲0.21 | 47.71 ▼1.59 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 46.19 ▼3.97 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.21 | 79.82 ▼13.92 |
Media Library /wp-admin/upload.php | 3.43 ▲0.21 | 39.24 ▲4.61 |
Admin CSS /wp-admin/themes.php?page=add-admin-css/add-admin-css.php | 3.41 | 34.21 |
Server storage [IO: ▲0.13MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Add Admin CSS
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.31 ▼1.07 | 1.64 ▼0.33 | 39.78 ▼2.53 |
Dashboard /wp-admin | 2,207 ▲19 | 5.80 ▲0.93 | 98.91 ▼18.74 | 40.57 ▼4.34 |
Posts /wp-admin/edit.php | 2,101 ▲33 | 2.05 ▼0.01 | 36.33 ▼0.10 | 31.77 ▼2.01 |
Add New Post /wp-admin/post-new.php | 1,519 ▼14 | 17.66 ▼5.50 | 690.16 ▲20.97 | 59.59 ▲4.18 |
Media Library /wp-admin/upload.php | 1,403 ▲18 | 4.25 ▼0.02 | 94.34 ▼6.94 | 41.09 ▼3.98 |
Admin CSS /wp-admin/themes.php?page=add-admin-css/add-admin-css.php | 1,091 | 3.24 | 77.50 | 47.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/add-admin-css/tests/phpunit/bootstrap.php
- 2× PHP files trigger server errors when accessed directly:
- > 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/add-admin-css/tests/phpunit/bootstrap.php on line 19
- > 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/add-admin-css/tests/phpunit/bootstrap.php on line 19
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: admin, style, coffee2code, css, admin theme...
add-admin-css/add-admin-css.php Passed 13 tests
The principal PHP file in "Add Admin CSS" v. 2.0.1 is loaded by WordPress automatically on each request
92 characters long description:
Easily define additional CSS (inline and/or by URL) to be added to all administration pages.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,791 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 375 | 697 | 1,411 |
Markdown | 3 | 60 | 0 | 345 |
Bourne Shell | 1 | 6 | 2 | 21 |
XML | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 47.75 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 139.00 |
Average method complexity | 2.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 1 | 25.00% |
▷ Concrete classes | 3 | 75.00% |
▷ Final classes | 1 | 33.33% |
Methods | 126 | |
▷ Static methods | 9 | 7.14% |
▷ Public methods | 112 | 88.89% |
▷ Protected methods | 14 | 11.11% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 3 | 60.00% |
▷ Class constants | 2 | 40.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
c2c_minilogo.png | 3.49KB | 1.91KB | ▼ 45.43% |