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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼2.86ms] Passed 4 tests
A check of server-side resources used by WP Super Minify
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 34.28 ▼8.44 |
Dashboard /wp-admin | 3.34 ▲0.04 | 49.84 ▲1.03 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 48.99 ▼1.61 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 84.52 ▲1.62 |
Media Library /wp-admin/upload.php | 3.27 ▲0.03 | 33.29 ▼2.41 |
WP Super Minify /wp-admin/options-general.php?page=wp-super-minify | 3.23 | 29.34 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 72 new files
Database: no new tables, 9 new options
New WordPress options |
---|
wpsmy_combine_js |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
wpsmy_combine_css |
wpsmy_plugin_version |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Super Minify
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,744 ▲9 | 14.48 ▼0.10 | 1.75 ▼0.16 | 38.14 ▼4.76 |
Dashboard /wp-admin | 2,212 ▲37 | 4.86 ▼0.09 | 107.06 ▼15.79 | 39.82 ▼3.56 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 1.97 ▼0.04 | 35.52 ▼4.48 | 32.19 ▼1.09 |
Add New Post /wp-admin/post-new.php | 1,533 ▼9 | 23.23 ▲5.20 | 639.48 ▲9.50 | 48.87 ▼2.38 |
Media Library /wp-admin/upload.php | 1,394 ▲3 | 4.25 ▲0.05 | 94.23 ▼5.92 | 41.92 ▼2.69 |
WP Super Minify /wp-admin/options-general.php?page=wp-super-minify | 893 | 2.05 | 24.67 | 29.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 8 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- wpsmy_combine_js
- wpsmy_combine_css
- widget_recent-comments
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)
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-super-minify/includes/min/server-info.php
- > /wp-content/plugins/wp-super-minify/includes/min/index.php
- > /wp-content/plugins/wp-super-minify/includes/min/builder/index.php
- > /wp-content/plugins/wp-super-minify/includes/min/builder/ocCheck.php
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'Minify_Controller_Base' not found in wp-content/plugins/wp-super-minify/includes/min/lib/Minify/Controller/Page.php:14
- > PHP Fatal error
The script "class.JavaScriptPacker.php" is required. Please see: http://code.google.com/p/minify/source/browse/trunk/min/lib/Minify/Packer.php in wp-content/plugins/wp-super-minify/includes/min/lib/Minify/Packer.php on line 21
- > PHP Fatal error
Uncaught Error: Class 'Minify_Controller_Base' not found in wp-content/plugins/wp-super-minify/includes/min/lib/Minify/Controller/MinApp.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function update_option() in wp-content/plugins/wp-super-minify/wp-super-minify.php:18
- > PHP Fatal error
Uncaught Error: Class 'Minify_Controller_Base' not found in wp-content/plugins/wp-super-minify/includes/min/lib/Minify/Controller/Groups.php:29
- > PHP Fatal error
Uncaught Error: Class 'Minify_Controller_Base' not found in wp-content/plugins/wp-super-minify/includes/min/lib/Minify/Controller/Files.php:27
- > PHP Fatal error
Uncaught Error: Class 'Minify_Controller_Base' not found in wp-content/plugins/wp-super-minify/includes/min/lib/Minify/Controller/Version1.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: You are using too many tags: 13 tag instead of maximum 10
- Screenshots: These screenshots lack descriptions #2, #3 in wp-super-minify/assets to your readme.txt
wp-super-minify/wp-super-minify.php Passed 13 tests
The main PHP file in "WP Super Minify" ver. 1.6 adds more information about the plugin and also serves as the entry point for this plugin
87 characters long description:
Minifies, caches and combine inline JavaScript and CSS files to improve page load time.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected7,524 lines of code in 61 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 51 | 1,332 | 4,395 | 6,908 |
JavaScript | 6 | 3 | 72 | 315 |
Java | 1 | 74 | 77 | 231 |
CSS | 3 | 6 | 5 | 70 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
It is recommended to fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 155)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 30.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 281.00 |
Average method complexity | 5.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 155.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 51 | |
▷ Abstract classes | 1 | 1.96% |
▷ Concrete classes | 50 | 98.04% |
▷ Final classes | 0 | 0.00% |
Methods | 321 | |
▷ Static methods | 70 | 21.81% |
▷ Public methods | 201 | 62.62% |
▷ Protected methods | 55 | 17.13% |
▷ Private methods | 65 | 20.25% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 138 | |
▷ Global constants | 105 | 76.09% |
▷ Class constants | 33 | 23.91% |
▷ Public constants | 33 | 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
7 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/wpsmy-support-this-16x16.png | 0.41KB | 0.41KB | 0.48% |
assets/images/wpsmy-icon-24x24.png | 19.20KB | 1.42KB | ▼ 92.58% |
assets/images/wpsmy-github-16x16.png | 0.25KB | 0.32KB | 0.00% |
assets/images/wpsmy-rate-this-16x16.png | 0.68KB | 0.82KB | 0.00% |
assets/images/wpsmy-other-plugins-16x16.png | 0.49KB | 0.56KB | 0.00% |