84% mmr-disable-for-divi

Code Review | Merge + Minify + Refresh Check DIVI

WordPress plugin Merge + Minify + Refresh Check DIVI scored84%from 54 tests.

About plugin

  • Plugin page: mmr-disable-for-divi
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.1-5.4
  • WordPress version: 6.3.1
  • First release: Dec 31, 2019
  • Latest release: May 14, 2020
  • Number of updates: 6
  • Update frequency: every 22.5 days
  • Top authors: launchinteractive (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /833 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.01ms] Passed 4 tests

This is a short check of server-side resources used by Merge + Minify + Refresh Check DIVI
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.88 ▼2.25
Dashboard /wp-admin3.31 ▲0.0148.37 ▼6.07
Posts /wp-admin/edit.php3.36 ▲0.0150.80 ▲2.29
Add New Post /wp-admin/post-new.php5.89 ▲0.0195.97 ▼12.68
Media Library /wp-admin/upload.php3.23 ▲0.0136.28 ▲0.98

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Merge + Minify + Refresh Check DIVI
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.44 ▲0.041.94 ▲0.0044.60 ▼2.26
Dashboard /wp-admin2,200 ▲125.83 ▼0.02104.38 ▼14.3540.83 ▼4.02
Posts /wp-admin/edit.php2,089 ▼32.01 ▼0.0536.54 ▼5.9134.12 ▼2.77
Add New Post /wp-admin/post-new.php1,538 ▼423.42 ▲4.85657.66 ▼7.6952.54 ▼5.97
Media Library /wp-admin/upload.php1,388 ▼04.25 ▲0.07102.82 ▼2.8646.02 ▲3.32

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mmr-disable-for-divi/merge-minify-refresh-check-divi.php:43

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
7 plugin tags: merge, minify, concatenate, apache, refresh...

mmr-disable-for-divi/merge-minify-refresh-check-divi.php 92% from 13 tests

The principal PHP file in "Merge + Minify + Refresh Check DIVI" v. 1.1.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("mmr-disable-for-divi.php" instead of "merge-minify-refresh-check-divi.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected18 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP152018

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code1.40
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected