10% wp-minify-fix

Code Review | WP Minify Fix

WordPress plugin WP Minify Fix scored10%from 54 tests.

About plugin

  • Plugin page: wp-minify-fix
  • Plugin version: 1.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.3.1
  • WordPress version: 6.3.1
  • First release: Apr 7, 2014
  • Latest release: Oct 22, 2015
  • Number of updates: 13
  • Update frequency: every 43.2 days
  • Top authors: NodeCode (100%)

Code review

54 tests

User reviews

40 reviews

Install metrics

1,000+ active /72,153 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.76 ▼0.7024.70 ▼15.23
Dashboard /wp-admin3.32 ▲0.0249.90 ▼0.66
Posts /wp-admin/edit.php3.37 ▲0.0149.52 ▼1.07
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.03 ▲4.50
Media Library /wp-admin/upload.php3.24 ▲0.0134.40 ▼1.53
WP Minify Fix /wp-admin/options-general.php?page=wp-minify-fix3.3837.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲3413.27 ▼1.101.77 ▼0.0539.93 ▼4.42
Dashboard /wp-admin2,225 ▲224.80 ▼1.02107.85 ▼6.6741.91 ▼1.12
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0242.48 ▲0.3135.19 ▼0.43
Add New Post /wp-admin/post-new.php1,548 ▲823.40 ▲5.03687.16 ▲68.5750.07 ▼2.20
Media Library /wp-admin/upload.php1,398 ▲14.25 ▲0.04102.16 ▲6.8044.01 ▲1.54
WP Minify Fix /wp-admin/options-general.php?page=wp-minify-fix1,0741.8229.5353.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

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
You can take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP491,3884,0727,607
PO File3183272438
JavaScript42079373
Java17477231
CSS11011

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 code0.52
Average class complexity33.59
▷ Minimum class complexity1.00
▷ Maximum class complexity229.00
Average method complexity5.44
▷ Minimum method complexity1.00
▷ Maximum method complexity155.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes49
▷ Abstract classes12.04%
▷ Concrete classes4897.96%
▷ Final classes00.00%
Methods361
▷ Static methods6919.11%
▷ Public methods24768.42%
▷ Protected methods5615.51%
▷ Private methods5816.07%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants137
▷ Global constants11080.29%
▷ Class constants2719.71%
▷ Public constants27100.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
FileSize - originalSize - compressedSavings
screenshot-3.png8.15KB4.44KB▼ 45.49%
screenshot-1.png13.48KB6.74KB▼ 49.97%
screenshot-2.png22.54KB8.76KB▼ 61.12%