Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/minify/minify.php+58
Non-static method MinifyAdmin::init() should not be called statically
Server metrics [RAM: ▼1.87MB] [CPU: ▼52.19ms] Passed 4 tests
A check of server-side resources used by Minify
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.13 ▼1.33 | 5.44 ▼34.01 |
Dashboard /wp-admin | 2.15 ▼1.19 | 8.14 ▼46.77 |
Posts /wp-admin/edit.php | 2.15 ▼1.20 | 6.88 ▼39.91 |
Add New Post /wp-admin/post-new.php | 2.15 ▼3.74 | 5.33 ▼88.06 |
Media Library /wp-admin/upload.php | 2.15 ▼1.08 | 6.99 ▼27.57 |
Server storage [IO: ▲0.17MB] [DB: ▲0.23MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Minify: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,764 ▲18 | 14.13 ▼0.22 | 1.23 ▼0.51 | 10.81 ▼35.18 |
Dashboard /wp-admin | 2,214 ▲34 | 5.62 ▲0.05 | 91.08 ▲3.18 | 39.81 ▼1.63 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.02 ▲0.04 | 41.87 ▲3.95 | 35.84 ▼3.58 |
Add New Post /wp-admin/post-new.php | 1,539 ▲4 | 22.93 ▲4.72 | 668.76 ▲10.75 | 91.58 ▲24.36 |
Media Library /wp-admin/upload.php | 1,410 ▲7 | 4.12 ▼0.05 | 115.80 ▲13.74 | 56.96 ▲10.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.24MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/minify/minify.php+58
Non-static method MinifyAdmin::init() should not be called statically
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined index: hash in wp-content/plugins/minify/make.php on line 6
- > PHP Notice
Undefined index: incr in wp-content/plugins/minify/make.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/minify/minify.php:20
- > PHP Notice
Undefined index: type in wp-content/plugins/minify/make.php on line 11
- > PHP Notice
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
5 plugin tags: minify, js, assets, performance, css
minify/minify.php Passed 13 tests
The primary PHP file in "Minify" version 0.2 is used by WordPress to initiate all plugin functionality
65 characters long description:
A minimal yet powerful CSS / JS minification plugin for WordPress
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
There were no executable files found in this plugin3,232 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 195 | 2,465 | 3,232 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 8.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 72.00 |
Average method complexity | 4.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 54.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 71 | |
▷ Abstract classes | 10 | 14.08% |
▷ Concrete classes | 61 | 85.92% |
▷ Final classes | 0 | 0.00% |
Methods | 158 | |
▷ Static methods | 13 | 8.23% |
▷ Public methods | 147 | 93.04% |
▷ Protected methods | 6 | 3.80% |
▷ Private methods | 5 | 3.16% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 6 | 54.55% |
▷ Class constants | 5 | 45.45% |
▷ Public constants | 5 | 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
There were not PNG files found in your plugin