90% bbpress-subscriptions-mandrill

Code Review | Mandrill for bbPress subscriptions

WordPress plugin Mandrill for bbPress subscriptions scored90%from 54 tests.

About plugin

  • Plugin page: bbpress-subscript...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.4
  • WordPress version: 6.3.1
  • First release: Aug 17, 2013
  • Latest release: Mar 14, 2020
  • Number of updates: 4
  • Update frequency: every 600.3 days
  • Top authors: tareq1988 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,257 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.83ms] Passed 4 tests

A check of server-side resources used by Mandrill for bbPress subscriptions
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.25 ▼4.00
Dashboard /wp-admin3.32 ▲0.0251.63 ▼1.14
Posts /wp-admin/edit.php3.37 ▲0.0249.45 ▼4.36
Add New Post /wp-admin/post-new.php5.90 ▲0.0287.70 ▼9.82
Media Library /wp-admin/upload.php3.24 ▲0.0238.60 ▲4.78

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Mandrill for bbPress subscriptions
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.33 ▼0.031.94 ▼0.2144.43 ▲0.24
Dashboard /wp-admin2,195 ▲215.67 ▲0.1394.03 ▼0.2642.33 ▲2.40
Posts /wp-admin/edit.php2,097 ▼31.99 ▲0.0339.34 ▲4.3636.16 ▲2.70
Add New Post /wp-admin/post-new.php1,526 ▼922.98 ▲4.91644.55 ▲25.1652.89 ▼24.52
Media Library /wp-admin/upload.php1,400 ▼04.21 ▲0.0296.16 ▼8.9940.40 ▼5.34

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: reply, bbpress, email-reply, email, notification

bbpress-subscriptions-mandrill/bbsub-mandrill.php 92% from 13 tests

"Mandrill for bbPress subscriptions" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bbpress-subscriptions-mandrill.php" instead of "bbsub-mandrill.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected72 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2357772

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity3.50
▷ Minimum class complexity2.00
▷ Maximum class complexity5.00
Average method complexity1.42
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods541.67%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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