84% mailbul

Code Review | Mailbul

WordPress plugin Mailbul scored84%from 54 tests.

About plugin

  • Plugin page: mailbul
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.8
  • WordPress version: 6.3.1
  • First release: Jun 8, 2017
  • Latest release: Jun 8, 2017
  • Number of updates: 11
  • Update frequency: every 0.7 days
  • Top authors: mailbul (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /637 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼11.17ms] Passed 4 tests

Analyzing server-side resources used by Mailbul
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.61 ▼14.41
Dashboard /wp-admin3.31 ▲0.0152.92 ▼2.65
Posts /wp-admin/edit.php3.36 ▲0.0049.73 ▼16.56
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.24 ▼11.04
Media Library /wp-admin/upload.php3.23 ▲0.0038.76 ▲2.30

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Mailbul
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲1414.27 ▲0.091.81 ▼0.1042.69 ▼0.40
Dashboard /wp-admin2,206 ▲295.54 ▼0.1388.16 ▼11.0077.07 ▲35.44
Posts /wp-admin/edit.php2,108 ▲51.99 ▼0.0237.91 ▲0.3536.39 ▲2.35
Add New Post /wp-admin/post-new.php1,689 ▲15322.51 ▼0.66746.10 ▲134.1254.22 ▲0.26
Media Library /wp-admin/upload.php1,405 ▲24.23 ▲0.03100.98 ▼3.5771.32 ▲24.98

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

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 | 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
Almost there! Just fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/mailbul/files/mailbul_admin.php
    • > /wp-content/plugins/mailbul/mailbul.php

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)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: lead generation, autoresponders, email import, email marketing, interspire...

mailbul/mailbul.php Passed 13 tests

"Mailbul" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
82 characters long description:
Automatically add your new WordPress user's email to your contact list on Mailbul.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin197 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23628197

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
files/lib/img/mailbul.png0.49KB0.59KB0.00%