Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼288.19ms] Passed 4 tests
A 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.77 ▲0.26 | 54.05 ▲7.67 |
Dashboard /wp-admin | 3.62 ▲0.22 | 35.63 ▼0.14 |
Posts /wp-admin/edit.php | 3.85 ▲0.21 | 38.24 ▼0.42 |
Add New Post /wp-admin/post-new.php | 7.08 ▲0.12 | 96.08 ▼1,156.80 |
Media Library /wp-admin/upload.php | 3.50 ▲0.21 | 27.66 ▲4.61 |
Admin CSS /wp-admin/themes.php?page=add-admin-css/add-admin-css.php | 3.62 | 23.51 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Add Admin CSS
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,768 ▲14 | 15.89 ▲0.26 | 6.11 ▼0.76 | 2.80 ▲0.36 |
Dashboard /wp-admin | 2,890 ▲29 | 6.13 ▼0.01 | 121.52 ▼18.90 | 154.37 ▼11.38 |
Posts /wp-admin/edit.php | 2,703 ▲9 | 3.24 ▲0.00 | 64.48 ▲0.69 | 142.80 ▼3.28 |
Add New Post /wp-admin/post-new.php | 1,778 ▲117 | 21.71 ▲5.14 | 465.75 ▲43.78 | 161.26 ▲3.75 |
Media Library /wp-admin/upload.php | 1,716 ▲24 | 5.56 ▲0.03 | 145.05 ▲1.16 | 193.59 ▲2.64 |
Admin CSS /wp-admin/themes.php?page=add-admin-css/add-admin-css.php | 1,361 | 4.17 | 105.44 | 161.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
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
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/add-admin-css/tests/phpunit/bootstrap.php
- 2× PHP files trigger server errors 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/add-admin-css/tests/phpunit/bootstrap.php on line 19
- > 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
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: coffee2code, style, stylesheets, admin, admin theme...
add-admin-css/add-admin-css.php Passed 13 tests
The main PHP script in "Add Admin CSS" version 2.0.1 is automatically included on every request by WordPress
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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not 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
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
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% |