10% minify

Code Review | Minify

WordPress plugin Minify scored10%from 54 tests.

About plugin

  • Plugin page: minify
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4
  • WordPress version: 6.3.1
  • First release: May 24, 2012
  • Latest release: Sep 2, 2012
  • Number of updates: 12
  • Update frequency: every 46.0 days
  • Top authors: wonderboymusic (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /19,252 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.13 ▼1.335.44 ▼34.01
Dashboard /wp-admin2.15 ▼1.198.14 ▼46.77
Posts /wp-admin/edit.php2.15 ▼1.206.88 ▼39.91
Add New Post /wp-admin/post-new.php2.15 ▼3.745.33 ▼88.06
Media Library /wp-admin/upload.php2.15 ▼1.086.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,764 ▲1814.13 ▼0.221.23 ▼0.5110.81 ▼35.18
Dashboard /wp-admin2,214 ▲345.62 ▲0.0591.08 ▲3.1839.81 ▼1.63
Posts /wp-admin/edit.php2,116 ▲162.02 ▲0.0441.87 ▲3.9535.84 ▼3.58
Add New Post /wp-admin/post-new.php1,539 ▲422.93 ▲4.72668.76 ▲10.7591.58 ▲24.36
Media Library /wp-admin/upload.php1,410 ▲74.12 ▼0.05115.80 ▲13.7456.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP41952,4653,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 code0.53
Average class complexity8.62
▷ Minimum class complexity1.00
▷ Maximum class complexity72.00
Average method complexity4.61
▷ Minimum method complexity1.00
▷ Maximum method complexity54.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes71
▷ Abstract classes1014.08%
▷ Concrete classes6185.92%
▷ Final classes00.00%
Methods158
▷ Static methods138.23%
▷ Public methods14793.04%
▷ Protected methods63.80%
▷ Private methods53.16%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants654.55%
▷ Class constants545.45%
▷ Public constants5100.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