Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.21MB] [CPU: ▼2.60ms] 75% from 4 tests
An overview of server-side resources used by CSS Minify
Please take the time to fix the following items
- CPU: Total CPU usage should be kept under 500.00ms (currently 542.67ms on /wp-admin/admin.php?page=ao_partners)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.22 | 51.89 ▲9.31 |
Dashboard /wp-admin | 3.57 ▲0.18 | 60.43 ▼10.73 |
Posts /wp-admin/edit.php | 3.68 ▲0.28 | 60.44 ▲5.69 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.24 | 94.54 ▼14.65 |
Media Library /wp-admin/upload.php | 3.49 ▲0.22 | 50.34 ▲9.62 |
AO partner /wp-admin/admin.php?page=ao_partners | 4.58 | 542.67 |
Server storage [IO: ▲0.41MB] [DB: ▲0.02MB] 67% from 3 tests
A short overview of filesystem and database impact
Please fix the following
- Illegal file modification detected: 4 files (0.99KB) outside of "wp-content/plugins/css-optimizer/" and "wp-content/uploads/"
- (new file) wp-content/cache/bpminifycss/index.html
- (new file) wp-content/cache/bpminifycss/.htaccess
- (new file) wp-content/cache/bpminifycss/js/index.html
- (new file) wp-content/cache/bpminifycss/css/index.html
Filesystem: 58 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
bpminifycss_version |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by CSS Minify
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,936 ▲175 | 13.85 ▼0.50 | 9.74 ▲8.10 | 42.43 ▲0.17 |
Dashboard /wp-admin | 2,206 ▲35 | 5.65 ▲0.08 | 92.46 ▲1.65 | 37.67 ▼4.77 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 2.16 ▲0.12 | 41.74 ▲1.89 | 34.30 ▼2.79 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 23.34 ▲0.02 | 682.22 ▲11.20 | 55.72 ▲3.27 |
Media Library /wp-admin/upload.php | 1,408 ▲8 | 4.26 ▲0.05 | 100.89 ▼6.34 | 44.91 ▲1.01 |
CSS Minify /wp-admin/options-general.php?page=CSS Minify | 1,153 | 2.33 | 39.67 | 43.63 |
AO partner /wp-admin/admin.php?page=ao_partners | 981 | 2.19 | 26.79 | 35.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% 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 50% 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
Almost there! Just fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined variable: bpminifycss_db_version in wp-content/plugins/css-optimizer/classlesses/bpminifycssUpdateCode.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/css-optimizer/classlesses/bpminifycssPartners.php:6
- > PHP Notice
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 86% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: css, minification, compress, minify css, minify
css-optimizer/bpminifycss.php 69% from 13 tests
"CSS Minify" version 3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("css-optimizer.php" instead of "bpminifycss.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Domain Path: The domain path should be prefixed with a forward slash character ("/localization/")
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("localization/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin6,122 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 849 | 1,437 | 4,575 |
PO File | 8 | 387 | 486 | 1,245 |
CSS | 3 | 33 | 18 | 225 |
JavaScript | 4 | 22 | 66 | 76 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 34.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 130.00 |
Average method complexity | 5.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 69.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 1 | 4.55% |
▷ Concrete classes | 21 | 95.45% |
▷ Final classes | 0 | 0.00% |
Methods | 185 | |
▷ Static methods | 13 | 7.03% |
▷ Public methods | 71 | 38.38% |
▷ Protected methods | 59 | 31.89% |
▷ Private methods | 55 | 29.73% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 41 | |
▷ Global constants | 19 | 46.34% |
▷ Class constants | 22 | 53.66% |
▷ Public constants | 22 | 100.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