94% wp-html-mail-buddypress

Code Review | BuddyPress Email Template Designer - WP HTML Mail

WordPress plugin BuddyPress Email Template Designer - WP HTML Mail scored 94% from 54 tests.

About plugin

  • Plugin page: wp-html-mail-budd...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.5.1
  • WordPress version: 5.9.2
  • First release: Jun 28, 2019
  • Latest release: Oct 23, 2020
  • Number of updates: 3
  • Update frequency: every 161.7 days
  • Top authors: haet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active / 3,077 total downloads

Benchmarks

Plugin footprint Passed 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.01MB] [CPU: ▼299.41ms] Passed 4 tests

Server-side resources used by BuddyPress Email Template Designer - WP HTML Mail
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0256.04 ▲4.20
Dashboard /wp-admin3.42 ▲0.0132.75 ▼1.69
Posts /wp-admin/edit.php3.65 ▲0.0136.14 ▼8.44
Add New Post /wp-admin/post-new.php6.89 ▼0.0893.51 ▼1,184.71
Media Library /wp-admin/upload.php3.30 ▲0.0126.48 ▼2.80

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for BuddyPress Email Template Designer - WP HTML Mail
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,801 ▲7915.26 ▼0.747.56 ▲2.122.43 ▲0.24
Dashboard /wp-admin2,911 ▲566.11 ▼0.05129.16 ▼8.05166.31 ▲2.33
Posts /wp-admin/edit.php2,710 ▲163.24 ▲0.0064.04 ▼0.75135.22 ▼14.28
Add New Post /wp-admin/post-new.php1,700 ▲1021.39 ▲0.51482.14 ▼5.26161.73 ▼43.57
Media Library /wp-admin/upload.php1,714 ▲165.55 ▲0.02141.10 ▲1.50190.10 ▼7.71

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-html-mail-buddypress/wp-html-mail-buddypress.php:41
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-html-mail-buddypress/wp-html-mail-buddypress.php on line 16
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/wp-html-mail-buddypress/wp-html-mail-buddypress.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Haet_Mail() in wp-content/plugins/wp-html-mail-buddypress/views/templates/buddypress-email-preview.php:10
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wp-html-mail-buddypress/wp-html-mail-buddypress.php on line 16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: message, mail, template, email, html mail...

wp-html-mail-buddypress/wp-html-mail-buddypress.php Passed 13 tests

The main file in "BuddyPress Email Template Designer - WP HTML Mail" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
41 characters long description:
Beautiful responsive mails for BuddyPress

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
Everything looks great! No dangerous files found in this plugin77 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3324577

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods125.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions457.14%
▷ Anonymous functions342.86%
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
No PNG images were found in this plugin