90% bp-email-to-wp-mail-from-bridge

Code Review | BP Email to WP Mail From Bridge

WordPress plugin BP Email to WP Mail From Bridge scored90%from 54 tests.

About plugin

  • Plugin page: bp-email-to-wp-ma...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.6
  • WordPress version: 6.3.1
  • First release: Apr 6, 2016
  • Latest release: Jul 13, 2016
  • Number of updates: 10
  • Update frequency: every 9.9 days
  • Top authors: thebrandonallen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,404 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
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼8.50ms] Passed 4 tests

This is a short check of server-side resources used by BP Email to WP Mail From Bridge
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.94 ▼3.68
Dashboard /wp-admin3.31 ▲0.0147.71 ▼12.31
Posts /wp-admin/edit.php3.37 ▲0.0050.30 ▼3.53
Add New Post /wp-admin/post-new.php5.90 ▲0.0087.38 ▼14.46
Media Library /wp-admin/upload.php3.24 ▲0.0038.36 ▲0.29

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by BP Email to WP Mail From Bridge
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.73 ▲0.361.86 ▲0.3740.33 ▼2.72
Dashboard /wp-admin2,195 ▲185.64 ▲0.0490.02 ▲0.0238.82 ▼7.08
Posts /wp-admin/edit.php2,100 ▼02.03 ▼0.0141.38 ▲7.2136.78 ▼2.07
Add New Post /wp-admin/post-new.php1,528 ▼023.20 ▼0.01691.12 ▲0.3051.88 ▼3.46
Media Library /wp-admin/upload.php1,400 ▼04.24 ▼0.02103.20 ▲3.8744.81 ▼0.57

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

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)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: buddypress, email

bp-email-to-wp-mail-from-bridge/bp-email-wp-mail-from-bridge.php 92% from 13 tests

Analyzing the main PHP file in "BP Email to WP Mail From Bridge" version 1.1
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("bp-email-to-wp-mail-from-bridge.php" instead of "bp-email-wp-mail-from-bridge.php")

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 plugin38 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
Markdown111023
PHP172515

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin