Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/wp-minify-fix/common.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; WPMinifyCommon has a deprecated constructor
Server metrics [RAM: ▼0.16MB] [CPU: ▼4.62ms] Passed 4 tests
This is a short check of server-side resources used by WP Minify Fix
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.76 ▼0.70 | 24.70 ▼15.23 |
Dashboard /wp-admin | 3.32 ▲0.02 | 49.90 ▼0.66 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.52 ▼1.07 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 93.03 ▲4.50 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.40 ▼1.53 |
WP Minify Fix /wp-admin/options-general.php?page=wp-minify-fix | 3.38 | 37.60 |
Server storage [IO: ▲0.53MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 69 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
wp_minify |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Minify Fix
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲34 | 13.27 ▼1.10 | 1.77 ▼0.05 | 39.93 ▼4.42 |
Dashboard /wp-admin | 2,225 ▲22 | 4.80 ▼1.02 | 107.85 ▼6.67 | 41.91 ▼1.12 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▲0.02 | 42.48 ▲0.31 | 35.19 ▼0.43 |
Add New Post /wp-admin/post-new.php | 1,548 ▲8 | 23.40 ▲5.03 | 687.16 ▲68.57 | 50.07 ▼2.20 |
Media Library /wp-admin/upload.php | 1,398 ▲1 | 4.25 ▲0.04 | 102.16 ▲6.80 | 44.01 ▲1.54 |
WP Minify Fix /wp-admin/options-general.php?page=wp-minify-fix | 1,074 | 1.82 | 29.53 | 53.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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: 7 options
- db_upgraded
- widget_recent-comments
- wp_minify
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-minify-fix/min/index.php
- > /wp-content/plugins/wp-minify-fix/min/builder/ocCheck.php
- > /wp-content/plugins/wp-minify-fix/min/builder/index.php
- 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Minify_Controller_Base' not found in wp-content/plugins/wp-minify-fix/min/lib/Minify/Controller/MinApp.php:13
- > PHP Fatal error
Uncaught Error: Class 'Minify_Controller_Base' not found in wp-content/plugins/wp-minify-fix/min/lib/Minify/Controller/Version1.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-minify-fix/options-generic.php:3
- > PHP Fatal error
Uncaught Error: Class 'Minify_Controller_Base' not found in wp-content/plugins/wp-minify-fix/min/lib/Minify/Controller/Groups.php:29
- > PHP Fatal error
Uncaught Error: Class 'Minify_Controller_Base' not found in wp-content/plugins/wp-minify-fix/min/lib/Minify/Controller/Files.php:27
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-minify-fix/options-sidebar.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_locale() in wp-content/plugins/wp-minify-fix/common.php:253
- > 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-minify-fix/min/lib/Minify/Packer.php on line 21
- > PHP Fatal error
Uncaught Error: Class 'Minify_Controller_Base' not found in wp-content/plugins/wp-minify-fix/min/lib/Minify/Controller/Page.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Options), #2 (Before WP Minify (11 JS requests @ 111KB)), #3 (After WP Minify (1 JS request @ 30KB))
- Tags: You are using too many tags: 22 tag instead of maximum 10
wp-minify-fix/wp-minify.php 92% from 13 tests
"WP Minify Fix" version 1.4.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-minify-fix.php" instead of "wp-minify.php")
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
Success! There were no dangerous files found in this plugin8,660 lines of code in 58 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 49 | 1,388 | 4,072 | 7,607 |
PO File | 3 | 183 | 272 | 438 |
JavaScript | 4 | 20 | 79 | 373 |
Java | 1 | 74 | 77 | 231 |
CSS | 1 | 1 | 0 | 11 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please 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.52 |
Average class complexity | 33.59 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 229.00 |
Average method complexity | 5.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 155.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 49 | |
▷ Abstract classes | 1 | 2.04% |
▷ Concrete classes | 48 | 97.96% |
▷ Final classes | 0 | 0.00% |
Methods | 361 | |
▷ Static methods | 69 | 19.11% |
▷ Public methods | 247 | 68.42% |
▷ Protected methods | 56 | 15.51% |
▷ Private methods | 58 | 16.07% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 137 | |
▷ Global constants | 110 | 80.29% |
▷ Class constants | 27 | 19.71% |
▷ Public constants | 27 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 8.15KB | 4.44KB | ▼ 45.49% |
screenshot-1.png | 13.48KB | 6.74KB | ▼ 49.97% |
screenshot-2.png | 22.54KB | 8.76KB | ▼ 61.12% |