74% merge-minify-refresh

Code Review | Merge + Minify + Refresh

WordPress plugin Merge + Minify + Refresh scored74%from 54 tests.

About plugin

  • Plugin page: merge-minify-refresh
  • Plugin version: 2.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.1-6.4.1
  • WordPress version: 6.3.1
  • First release: Apr 15, 2015
  • Latest release: Nov 17, 2023
  • Number of updates: 171
  • Update frequency: every 18.4 days
  • Top authors: launchinteractive (100%)

Code review

54 tests

User reviews

68 reviews

Install metrics

7,000+ active /362,867 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.22MB] [CPU: ▲12.25ms] Passed 4 tests

Analyzing server-side resources used by Merge + Minify + Refresh
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.16 ▲0.7048.84 ▲5.91
Dashboard /wp-admin3.58 ▲0.231,057.93 ▲997.60
Posts /wp-admin/edit.php3.61 ▲0.2668.69 ▲21.58
Add New Post /wp-admin/post-new.php6.08 ▲0.19120.26 ▲14.43
Media Library /wp-admin/upload.php3.42 ▲0.1940.08 ▲7.06
Merge + Minify + Refresh /wp-admin/options-general.php?page=merge-minify-refresh3.3939.21

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

A short overview of filesystem and database impact
Just a few items left to fix
  • There were 30 files (1,048.41KB) illegally modified outside of "wp-content/plugins/merge-minify-refresh/" and "wp-content/uploads/"
    • (new file) wp-content/mmr/106e0e26-1696829338.js
    • (new file) wp-content/mmr/106e0e26-1696829338.js.log
    • (new file) wp-content/mmr/14d40365-1696829338.min.js
    • (new file) wp-content/mmr/2f8a0570-1696829337.js.log
    • (new file) wp-content/mmr/2f8a0570-1696829337.js
    • (new file) wp-content/mmr/44ed2d01-1700206702.css
    • (new file) wp-content/mmr/106e0e26-1696829338.min.js
    • (new file) wp-content/mmr/14d40365-1696829338.js
    • (new file) wp-content/mmr/2f8a0570-1696829337.min.js
    • (new file) wp-content/mmr/14d40365-1696829338.js.log
    • ...
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Merge + Minify + Refresh: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,763 ▲114.14 ▼0.501.94 ▲0.3437.57 ▼6.80
Dashboard /wp-admin2,199 ▲215.63 ▼0.06142.35 ▲44.0659.51 ▲14.39
Posts /wp-admin/edit.php2,086 ▼141.98 ▲0.0151.84 ▲12.3549.28 ▲14.91
Add New Post /wp-admin/post-new.php1,683 ▲15722.19 ▼1.081,289.22 ▲640.7991.46 ▲29.28
Media Library /wp-admin/upload.php1,407 ▲104.26 ▲0.1798.34 ▼7.0643.72 ▼2.48
Merge + Minify + Refresh /wp-admin/options-general.php?page=merge-minify-refresh1,2842.2833.1835.07

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% 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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 8× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/merge-minify-refresh/merge-minify-refresh.php:71
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Exceptions\\BasicException' not found in wp-content/plugins/merge-minify-refresh/Minify/src/Exceptions/FileImportException.php:20
    • > PHP Fatal error
      Uncaught Error: Interface 'MatthiasMullie\\PathConverter\\ConverterInterface' not found in wp-content/plugins/merge-minify-refresh/Minify/Converter.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Minify' not found in wp-content/plugins/merge-minify-refresh/Minify/src/JS.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Minify' not found in wp-content/plugins/merge-minify-refresh/Minify/src/CSS.php:29
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Exceptions\\BasicException' not found in wp-content/plugins/merge-minify-refresh/Minify/src/Exceptions/IOException.php:20
    • > PHP Fatal error
      Uncaught Error: Interface 'MatthiasMullie\\PathConverter\\ConverterInterface' not found in wp-content/plugins/merge-minify-refresh/Minify/NoConverter.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Exception' not found in wp-content/plugins/merge-minify-refresh/Minify/src/Exceptions/BasicException.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

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
7 plugin tags: litespeed, concatenate, merge, apache, refresh...

merge-minify-refresh/merge-minify-refresh.php Passed 13 tests

The main PHP script in "Merge + Minify + Refresh" version 2.2 is automatically included on every request by WordPress
36 characters long description:
Merge/Concatenate & Minify CSS & JS.

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
These items require your attention
  • Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
    • .jar - Java Archive in Firefox, IE, Chrome, Safari
      • wp-content/plugins/merge-minify-refresh/closure-compiler.jar
1,916 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP125301,5811,639
CSS1220151
JavaScript1100126

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity22.92
▷ Minimum class complexity1.00
▷ Maximum class complexity169.00
Average method complexity3.91
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces4
Interfaces1
Traits0
Classes11
▷ Abstract classes327.27%
▷ Concrete classes872.73%
▷ Final classes00.00%
Methods91
▷ Static methods11.10%
▷ Public methods3639.56%
▷ Protected methods3740.66%
▷ Private methods1819.78%
Functions12
▷ Named functions00.00%
▷ Anonymous functions12100.00%
Constants6
▷ Global constants466.67%
▷ Class constants233.33%
▷ Public constants150.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
No PNG files were detected