78% mailingboss

Code Review | MailingBoss WP Plugin

WordPress plugin MailingBoss WP Plugin scored78%from 54 tests.

About plugin

  • Plugin page: mailingboss
  • Plugin version: 1.0.18
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.1
  • WordPress version: 6.3.1
  • First release: Nov 18, 2019
  • Latest release: Oct 4, 2021
  • Number of updates: 33
  • Update frequency: every 21.4 days
  • Top authors: builderall (100%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active /24,379 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.21MB] [CPU: ▼3.92ms] Passed 4 tests

This is a short check of server-side resources used by MailingBoss WP Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2748.63 ▲6.49
Dashboard /wp-admin3.55 ▲0.2147.40 ▼14.09
Posts /wp-admin/edit.php3.60 ▲0.2557.31 ▲3.26
Add New Post /wp-admin/post-new.php6.09 ▲0.2188.69 ▼5.09
Media Library /wp-admin/upload.php3.41 ▲0.1836.89 ▲0.26

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 48 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_mailingboss_wp_plugin_form_widget
widget_recent-posts

Browser metrics Passed 4 tests

MailingBoss WP Plugin: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,914 ▲17913.51 ▼0.944.82 ▲2.7240.22 ▼12.82
Dashboard /wp-admin2,240 ▲495.79 ▼0.09110.32 ▲1.5084.27 ▲36.90
Posts /wp-admin/edit.php2,125 ▲362.02 ▼0.0336.84 ▼4.6434.07 ▼1.43
Add New Post /wp-admin/post-new.php6,381 ▲4,86727.39 ▲9.77939.05 ▲216.2939.78 ▼14.51
Media Library /wp-admin/upload.php1,419 ▲314.20 ▼0.02100.62 ▼4.3576.90 ▲31.91

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% 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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/mailingboss/public/partials/mailingboss-wp-plugin-public-display.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/mailingboss/admin/partials/mailingboss-wp-plugin-admin-display-list.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mailingboss/includes/widgets/class-mailingboss-wp-plugin-form-widget.php:8

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 on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: mailingboss, email, newsletter, builderall, widget...

mailingboss/mailingboss-wp-plugin.php 85% from 13 tests

This is the main PHP file of "MailingBoss WP Plugin" version 1.0.18, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mailingboss.php" instead of "mailingboss-wp-plugin.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,685 lines of code in 38 files:
LanguageFilesBlank linesComment linesLines of code
PHP304501,0101,428
JavaScript31854124
PO File1293473
CSS28847
JSON20013

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity7.11
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.06
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes19
▷ Abstract classes00.00%
▷ Concrete classes19100.00%
▷ Final classes00.00%
Methods105
▷ Static methods1312.38%
▷ Public methods8883.81%
▷ Protected methods00.00%
▷ Private methods1716.19%
Functions12
▷ Named functions433.33%
▷ Anonymous functions866.67%
Constants7
▷ Global constants228.57%
▷ Class constants571.43%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/img/favicon.png0.62KB0.89KB0.00%
public/img/icon-86x86.png5.67KB3.11KB▼ 45.28%
public/img/icon-16x16.png0.62KB0.89KB0.00%