90% merge-minify-refresh-clear-caches

Code Review | Merge + Minify + Refresh Clear Caches

WordPress plugin Merge + Minify + Refresh Clear Caches scored 90% from 54 tests.

About plugin

  • Plugin page: merge-minify-refr...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.0.5
  • WordPress version: 6.3.1
  • First release: Apr 18, 2018
  • Latest release: Aug 9, 2023
  • Number of updates: 5
  • Update frequency: every 387.8 days
  • Top authors: macbookandrew (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,980 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.91ms] Passed 4 tests

An overview of server-side resources used by Merge + Minify + Refresh Clear Caches
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0231.98 ▼12.13
Dashboard /wp-admin3.32 ▲0.0244.60 ▼6.38
Posts /wp-admin/edit.php3.38 ▲0.0244.19 ▼2.39
Add New Post /wp-admin/post-new.php5.92 ▲0.0495.06 ▲1.28
Media Library /wp-admin/upload.php3.25 ▲0.0234.55 ▲3.43
MMR Force Clear Caches /wp-admin/options-general.php?page=merge-minify-refresh-clear-caches3.2130.99

Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Merge + Minify + Refresh Clear Caches
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.30 ▼1.001.76 ▼0.3039.74 ▼8.12
Dashboard /wp-admin2,210 ▲225.85 ▼0.02106.90 ▼15.2537.94 ▼3.77
Posts /wp-admin/edit.php2,093 ▲42.02 ▲0.0135.14 ▼3.2933.34 ▼0.92
Add New Post /wp-admin/post-new.php1,550 ▲3618.45 ▲0.91619.65 ▼58.9074.46 ▲19.69
Media Library /wp-admin/upload.php1,395 ▲74.17 ▼0.0497.01 ▼3.6942.14 ▼2.44
MMR Force Clear Caches /wp-admin/options-general.php?page=merge-minify-refresh-clear-caches7622.0423.8822.01

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 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)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: wp super cache, merge minify refresh, performance, caches, speed...

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

The entry point to "Merge + Minify + Refresh Clear Caches" version 1.1.1 is a PHP file that has certain tags in its header comment area
81 characters long description:
Clears popular caching plugins when the Merge + Minify + Refresh cache is updated

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected74 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2174557
JavaScript10017

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.41
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
4 compressed PNG files occupy 0.31MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png21.41KB22.33KB0.00%
assets/banner-1544x500.png207.88KB216.40KB0.00%
assets/banner-772x250.png80.56KB84.16KB0.00%
assets/icon-128x128.png9.38KB9.67KB0.00%