89% mailpoet-bbpress-add-on

Code Review | MailPoet bbPress Add-on

WordPress plugin MailPoet bbPress Add-on scored 89% from 54 tests.

About plugin

  • Plugin page: mailpoet-bbpress-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.1-3.8.1
  • WordPress version: 5.8.1
  • First release: Mar 3, 2014
  • Latest release: Apr 5, 2014
  • Number of updates: 5
  • Update frequency: every 9.2 days
  • Top authors: sebd86 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,074 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.11MB] [CPU: ▼139.80ms] Passed 4 tests

Analyzing server-side resources used by MailPoet bbPress Add-on
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.1742.05 ▲17.46
Dashboard /wp-admin3.15 ▲0.1053.09 ▲11.09
Posts /wp-admin/edit.php3.27 ▲0.1643.60 ▲1.09
Add New Post /wp-admin/post-new.php5.51 ▲0.0896.32 ▼584.50
Media Library /wp-admin/upload.php3.10 ▲0.1047.76 ▲13.11

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 1 new option
New WordPress options
mailpoet_bbpress_addon_version

Browser metrics Passed 4 tests

A check of browser resources used by MailPoet bbPress Add-on
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,737 ▲14115.91 ▲0.3211.13 ▲3.0853.27 ▲1.46
Dashboard /wp-admin3,003 ▲695.87 ▼0.14142.06 ▼10.94115.08 ▼12.51
Posts /wp-admin/edit.php2,766 ▲272.82 ▲0.1373.55 ▲3.8898.88 ▲0.03
Add New Post /wp-admin/post-new.php1,601 ▼8216.35 ▼2.32440.11 ▲37.75116.88 ▼5.84
Media Library /wp-admin/upload.php1,837 ▲305.01 ▼0.00177.48 ▲18.63126.62 ▼1.13

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • mailpoet_bbpress_addon_version

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Registration page created with the shortcode [bbp-register], a checkbox field is added allowing the user to subscribe to the newsletter/s you select when they register.), #2 (General Settings, enable the checkbox to appear on the checkout page along with the label of your choosing.), #3 (MailPoet Lists, select the lists the customer will be subscribed to.)
The official readme.txt might help

mailpoet-bbpress-add-on/mailpoet-bbpress-addon.php 85% from 13 tests

Analyzing the main PHP file in "MailPoet bbPress Add-on" version 1.0.0
You should first fix the following items:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Main file name: The principal plugin file should be the same as the plugin slug ("mailpoet-bbpress-add-on.php" instead of "mailpoet-bbpress-addon.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin669 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP13191460592
PO File1212273
CSS1164

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity13.25
▷ Minimum class complexity5.00
▷ Maximum class complexity18.00
Average method complexity2.48
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods33
▷ Static methods412.12%
▷ Public methods2987.88%
▷ Protected methods00.00%
▷ Private methods412.12%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants880.00%
▷ Class constants220.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin