84% mmr-disable-for-visual-composer-editor

Code Review | Merge + Minify + Refresh Check Visual Composer

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

About plugin

  • Plugin page: mmr-disable-for-v...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.1-5.4
  • WordPress version: 6.3.1
  • First release: Dec 30, 2019
  • Latest release: Mar 16, 2020
  • Number of updates: 5
  • Update frequency: every 15.8 days
  • Top authors: launchinteractive (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /672 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.01MB] [CPU: ▼4.77ms] Passed 4 tests

A check of server-side resources used by Merge + Minify + Refresh Check Visual Composer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.77 ▼6.54
Dashboard /wp-admin3.31 ▲0.0146.56 ▼3.01
Posts /wp-admin/edit.php3.36 ▲0.0147.57 ▼0.36
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.78 ▼9.16
Media Library /wp-admin/upload.php3.23 ▲0.0136.95 ▲1.52

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Merge + Minify + Refresh Check Visual Composer: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.17 ▼1.231.74 ▼0.0839.58 ▼10.41
Dashboard /wp-admin2,206 ▲184.83 ▼1.10107.14 ▲2.3138.59 ▼1.55
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0240.04 ▲5.0535.48 ▼0.94
Add New Post /wp-admin/post-new.php1,551 ▲3218.24 ▼4.57671.18 ▲34.7661.47 ▲0.23
Media Library /wp-admin/upload.php1,391 ▲34.29 ▲0.0696.35 ▼3.1442.52 ▼2.18

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mmr-disable-for-visual-composer-editor/merge-minify-refresh-check-visual-composer.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: concatenate, refresh, minify, closure, litespeed...

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

This is the main PHP file of "Merge + Minify + Refresh Check Visual Composer" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("mmr-disable-for-visual-composer-editor.php" instead of "merge-minify-refresh-check-visual-composer.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin13 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP152013

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code1.33
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin