83% maui-marketing-script-manager

Code Review | Maui Marketing Scripts, Tags & CSS Manager

WordPress plugin Maui Marketing Scripts, Tags & CSS Manager scored 83% from 54 tests.

About plugin

  • Plugin page: maui-marketing-sc...
  • Plugin version: 2.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3
  • WordPress version: 6.3.1
  • First release: Nov 13, 2015
  • Latest release: Jan 31, 2017
  • Number of updates: 15
  • Update frequency: every 29.7 days
  • Top authors: mauimarketing (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active / 2,026 total downloads

Benchmarks

Plugin footprint 82% 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: ▼8.54ms] Passed 4 tests

Analyzing server-side resources used by Maui Marketing Scripts, Tags & CSS Manager
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0628.56 ▼13.42
Dashboard /wp-admin3.33 ▲0.0244.49 ▼2.96
Posts /wp-admin/edit.php3.44 ▲0.0847.47 ▼2.01
Add New Post /wp-admin/post-new.php5.93 ▲0.0481.47 ▼15.76
Media Library /wp-admin/upload.php3.25 ▲0.0234.87 ▲1.76

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

How much does this plugin use your filesystem and database?
Please try to fix the following items
  • You have illegally modified 2 files (3.13KB) outside of "wp-content/plugins/maui-marketing-script-manager/" and "wp-content/uploads/"
    • (modified) wp-content/themes/twentytwentyone/header.php
    • (modified) wp-content/themes/twentytwentyone/footer.php
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Maui Marketing Scripts, Tags & CSS Manager: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,851 ▲11613.95 ▼0.251.98 ▲0.0844.35 ▼4.01
Dashboard /wp-admin2,220 ▲324.85 ▼0.03106.04 ▼10.8984.34 ▲42.69
Posts /wp-admin/edit.php2,115 ▲262.05 ▲0.0338.89 ▲1.5134.70 ▲1.60
Add New Post /wp-admin/post-new.php1,551 ▲3218.38 ▼5.05579.74 ▼121.0837.75 ▼14.99
Media Library /wp-admin/upload.php1,419 ▲314.38 ▲0.1388.28 ▼17.7879.04 ▲35.12

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/maui-marketing-script-manager/mm-script-manager-admin.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/maui-marketing-script-manager/mm-script-manager-admin.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Donate link: Invalid url: ""
The official readme.txt might help

maui-marketing-script-manager/mm-script-manager.php 77% from 13 tests

The main file in "Maui Marketing Scripts, Tags & CSS Manager" v. 2.3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 450 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("maui-marketing-script-manager.php" instead of "mm-script-manager.php")
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

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
Everything looks great! No dangerous files found in this plugin2,665 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS251501,388
PHP249121,248
JavaScript21029

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity139.50
▷ Minimum class complexity64.00
▷ Maximum class complexity215.00
Average method complexity18.31
▷ Minimum method complexity1.00
▷ Maximum method complexity47.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.20MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/h_t_icon.png1.17KB1.18KB0.00%
assets/screenshot-1.png59.32KB20.27KB▼ 65.83%
assets/screenshot-2.png80.46KB29.80KB▼ 62.96%
assets/screenshot-3.png23.33KB7.57KB▼ 67.57%
assets/screenshot-4.png35.81KB11.92KB▼ 66.71%