84% wp-html-mail-buddypress

Code Review | BuddyPress Email Template Designer - WP HTML Mail

WordPress plugin BuddyPress Email Template Designer - WP HTML Mail scored84%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: 6.3.1
  • 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,908 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.98ms] Passed 4 tests

An overview of 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.74 ▲0.0147.36 ▲4.10
Dashboard /wp-admin3.58 ▲0.0150.73 ▲0.24
Posts /wp-admin/edit.php3.69 ▲0.0151.95 ▲0.28
Add New Post /wp-admin/post-new.php6.16 ▲0.0195.28 ▼7.26
Media Library /wp-admin/upload.php3.50 ▲0.0136.75 ▼5.18

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

BuddyPress Email Template Designer - WP HTML Mail: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲1314.38 ▼0.181.78 ▼0.0343.44 ▲0.74
Dashboard /wp-admin2,208 ▲315.66 ▲0.0796.09 ▲2.6042.99 ▲1.96
Posts /wp-admin/edit.php2,111 ▲111.99 ▲0.0140.36 ▲3.9538.11 ▲5.50
Add New Post /wp-admin/post-new.php1,536 ▲317.53 ▼5.64606.01 ▼87.3048.47 ▼6.38
Media Library /wp-admin/upload.php1,407 ▲74.33 ▲0.13102.55 ▼13.1346.26 ▲0.12

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
  • 5× PHP files trigger server errors when accessed directly:
    • > 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 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(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 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
    • > 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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: mail, buddypress, html mail, template, email...

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

Analyzing the main PHP file in "BuddyPress Email Template Designer - WP HTML Mail" version 1.0.1
41 characters long description:
Beautiful responsive mails for BuddyPress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin77 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3324577

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin