10% all-in-one-minifier

Code Review | All in one Minifier

WordPress plugin All in one Minifier scored 10% from 54 tests.

About plugin

  • Plugin page: all-in-one-minifier
  • Plugin version: 2.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.1.1
  • WordPress version: 6.3.1
  • First release: Apr 10, 2022
  • Latest release: Jan 25, 2023
  • Number of updates: 16
  • Update frequency: every 18.3 days
  • Top authors: maheshmthorat (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

20+ active / 1,286 total downloads

Benchmarks

Plugin footprint 22% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/all-in-one-minifier/includes/class-all-in-one-minifier-core.php+83
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.69MB] [CPU: ▼46.53ms] Passed 4 tests

Server-side resources used by All in one Minifier
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.30 ▼1.167.00 ▼33.47
Dashboard /wp-admin2.32 ▼0.9910.40 ▼39.19
Posts /wp-admin/edit.php2.32 ▼1.047.48 ▼36.84
Add New Post /wp-admin/post-new.php2.32 ▼3.576.65 ▼76.60
Media Library /wp-admin/upload.php2.32 ▼0.916.49 ▼26.35
Donate /wp-admin/admin.php?page=all-in-one-minifier-donate2.326.80
Page Speed Report /wp-admin/admin.php?page=all-in-one-minifier-report2.328.18
About /wp-admin/admin.php?page=all-in-one-minifier-about2.328.89
Settings /wp-admin/admin.php?page=all-in-one-minifier-admin2.327.21

Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] 67% from 3 tests

Filesystem and database footprint
Please fix the following
  • You have illegally modified 1 file (0.00KB) outside of "wp-content/plugins/all-in-one-minifier/" and "wp-content/uploads/"
    • (new file) wp-content/cache/alone_minifier/.empty
Filesystem: 16 new files
Database: 1 new table, 7 new options
New tables
wp_alone_minifier_analysis
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
all-in-one-minifier
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by All in one Minifier
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲7613.23 ▼1.161.73 ▼0.3244.34 ▼8.07
Dashboard /wp-admin2,236 ▲514.86 ▼0.05112.49 ▼5.6143.76 ▼4.01
Posts /wp-admin/edit.php2,122 ▲302.18 ▲0.1933.41 ▼6.5231.87 ▼2.10
Add New Post /wp-admin/post-new.php1,554 ▲1723.24 ▲0.15617.79 ▼44.1648.66 ▼2.81
Media Library /wp-admin/upload.php1,421 ▲334.16 ▼0.04101.60 ▲2.5040.44 ▼2.85
Donate /wp-admin/admin.php?page=all-in-one-minifier-donate9612.0224.9933.65
Page Speed Report /wp-admin/admin.php?page=all-in-one-minifier-report1,0742.2025.7033.15
About /wp-admin/admin.php?page=all-in-one-minifier-about8892.0224.8727.17
Settings /wp-admin/admin.php?page=all-in-one-minifier-admin9792.1922.1838.90

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/all-in-one-minifier/includes/class-all-in-one-minifier-core.php+83
    Trying to access array offset on value of type bool
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_alone_minifier_analysis
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • all-in-one-minifier

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=all-in-one-minifier-admin
    • > Notice in wp-content/plugins/all-in-one-minifier/includes/class-all-in-one-minifier-core.php+131
    Trying to access array offset on value of type bool
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=all-in-one-minifier-admin
    • > Notice in wp-content/plugins/all-in-one-minifier/includes/class-all-in-one-minifier-core.php+142
    Undefined index: generatereport
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=all-in-one-minifier-report
    • > Notice in wp-content/plugins/all-in-one-minifier/admin/class-all-in-one-minifier-admin.php+555
    Undefined index: filter-post-type
    • > GET request to /wp-admin/admin.php?page=all-in-one-minifier-report
    • > Notice in wp-content/plugins/all-in-one-minifier/admin/class-all-in-one-minifier-admin.php+380
    Undefined index: paged

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/all-in-one-minifier/admin/class-all-in-one-minifier-admin.php:918

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% 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 need to be fixed:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
  • Screenshots: Please a description for screenshot #5 in all-in-one-minifier/assets to your readme.txt
  • Screenshots: Screenshot #4 (A screenshot of the speed test in console.) image not found
You can take inspiration from this readme.txt

all-in-one-minifier/all-in-one-minifier.php Passed 13 tests

The main PHP file in "All in one Minifier" ver. 2.2 adds more information about the plugin and also serves as the entry point for this plugin
107 characters long description:
Reduce your page load by minify your HTML source on page with all the CSS and JS code present in your page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,549 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP670961,098
CSS13320430
SVG20121

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity42.00
▷ Minimum class complexity6.00
▷ Maximum class complexity78.00
Average method complexity4.52
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.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
5 PNG files occupy 0.25MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/img/gpay.png88.55KB34.15KB▼ 61.44%
admin/assets/img/sbi.png19.66KB9.76KB▼ 50.34%
admin/assets/img/paypral.png24.14KB23.87KB▼ 1.11%
admin/assets/img/upi.png78.57KB29.46KB▼ 62.51%
admin/assets/img/paytm.png44.70KB21.35KB▼ 52.23%