72% mailbluster4wp

Code Review | MailBluster for WordPress

WordPress plugin MailBluster for WordPress scored72%from 54 tests.

About plugin

  • Plugin page: mailbluster4wp
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Jun 27, 2019
  • Latest release: May 29, 2023
  • Number of updates: 28
  • Update frequency: every 51.2 days
  • Top authors: mailbluster (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /3,698 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.37MB] [CPU: ▼5.17ms] Passed 4 tests

A check of server-side resources used by MailBluster for WordPress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.87 ▲0.4140.29 ▼1.97
Dashboard /wp-admin3.71 ▲0.3653.33 ▼10.51
Posts /wp-admin/edit.php3.76 ▲0.4151.80 ▼0.30
Add New Post /wp-admin/post-new.php6.25 ▲0.3691.18 ▼7.32
Media Library /wp-admin/upload.php3.57 ▲0.3438.18 ▼0.88
API Key /wp-admin/edit.php?post_type=mb4wpform&page=mb4wpform-api3.5436.28
Forms /wp-admin/edit.php?post_type=mb4wpform3.6148.33

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
mb4wp_api_options
widget_recent-comments
widget_mb4wp_widget
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for MailBluster for WordPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,971 ▲22514.31 ▼0.355.27 ▲3.2339.48 ▼1.26
Dashboard /wp-admin2,291 ▲1065.51 ▼0.35117.41 ▲13.3641.48 ▲0.25
Posts /wp-admin/edit.php2,158 ▲662.67 ▲0.6538.46 ▼3.6233.01 ▼3.18
Add New Post /wp-admin/post-new.php1,547 ▲1423.53 ▲0.10621.03 ▼56.2734.00 ▼23.82
Media Library /wp-admin/upload.php1,456 ▲654.84 ▲0.47103.62 ▼0.1243.20 ▼2.04
API Key /wp-admin/edit.php?post_type=mb4wpform&page=mb4wpform-api8942.3731.9127.31
Forms /wp-admin/edit.php?post_type=mb4wpform1,1712.5642.7729.69

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
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_mb4wp_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 25% 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 0% 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
Please take a closer look at the following
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/mailbluster4wp/admin/class-mailbluster4wp-widget.php
    • > /wp-content/plugins/mailbluster4wp/public/partials/mailbluster4wp-public-display.php
  • 8× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/mailbluster4wp/admin/partials/form-options/appearance.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/mailbluster4wp/admin/partials/mailbluster4wp-admin-api-display.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/mailbluster4wp/admin/partials/form-options/messages.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/mailbluster4wp/admin/partials/form-options/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'MailBluster4WP_Helper' not found in wp-content/plugins/mailbluster4wp/admin/partials/mailbluster4wp-form-option.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/mailbluster4wp/admin/partials/form-options/builder.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/mailbluster4wp/admin/partials/mailbluster4wp-form-description.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/mailbluster4wp/admin/partials/mailbluster4wp-form-admin-shortcode.php:12

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=mb4wpform
    • > Console-api (severe) in unknown
    https://cdn.quilljs.com/1.3.6/quill.js?ver=1.3.6 1986:33 "quill" "Invalid Quill container" "#mbq_editor"
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=mb4wpform
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'tooltip')" "TypeError: Cannot read properties of undefined (reading 'tooltip')\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/mailbluster4wp/admin/js/mailbluster4wp-admin.js?ver=1.2.1:60:33)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=mb4wpform
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of undefined (reading 'tooltip')

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Screenshots: Screenshot #9 (MailBluster form option (Settings).) image required
The official readme.txt might help

mailbluster4wp/mailbluster4wp.php 92% from 13 tests

The main PHP script in "MailBluster for WordPress" version 1.2.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 186 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin3,488 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP224201,1622,361
JavaScript35685572
CSS22810553
SVG2102

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity18.50
▷ Minimum class complexity1.00
▷ Maximum class complexity93.00
Average method complexity2.86
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods94
▷ Static methods2728.72%
▷ Public methods7882.98%
▷ Protected methods00.00%
▷ Private methods1617.02%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 files were detected