89% vibe-buddypress-to-wp-mail-fix

Code Review | Vibe BuddyPress Mails via WPMail

WordPress plugin Vibe BuddyPress Mails via WPMail scored89%from 54 tests.

About plugin

  • Plugin page: vibe-buddypress-t...
  • Plugin version: 1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.2
  • WordPress version: 6.3.1
  • First release: Oct 21, 2021
  • Latest release: May 15, 2023
  • Number of updates: 3
  • Update frequency: every 223.3 days
  • Top authors: VibeThemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /583 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.31ms] Passed 4 tests

Server-side resources used by Vibe BuddyPress Mails via WPMail
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0436.79 ▼1.44
Dashboard /wp-admin3.34 ▲0.0343.57 ▼3.87
Posts /wp-admin/edit.php3.39 ▲0.0344.90 ▼0.46
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.97 ▼15.46
Media Library /wp-admin/upload.php3.26 ▲0.0335.60 ▲2.83

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Vibe BuddyPress Mails via WPMail
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.24 ▼0.281.85 ▲0.0740.89 ▲1.25
Dashboard /wp-admin2,198 ▲285.63 ▼0.0185.03 ▼7.0639.80 ▼5.23
Posts /wp-admin/edit.php2,103 ▲32.02 ▲0.0234.64 ▼0.1635.19 ▼0.24
Add New Post /wp-admin/post-new.php1,526 ▼1022.88 ▲4.76669.01 ▼12.9264.83 ▲1.97
Media Library /wp-admin/upload.php1,397 ▲34.21 ▼0.0397.12 ▼1.1142.57 ▼2.82

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Mail screen.), #2 (Settings screen)
The official readme.txt is a good inspiration

vibe-buddypress-to-wp-mail-fix/loader.php 85% from 13 tests

This is the main PHP file of "Vibe BuddyPress Mails via WPMail" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("vibe-buddypress-to-wp-mail-fix.php" instead of "loader.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin101 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1361571
PO File14528
Markdown1002

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.12
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.20
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods110.00%
▷ Public methods990.00%
▷ Protected methods00.00%
▷ Private methods110.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin