90% newsletter-buddypress

Code Review | BuddyPress Addon for Newsletter

WordPress plugin BuddyPress Addon for Newsletter scored 90% from 54 tests.

About plugin

  • Plugin page: newsletter-buddyp...
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 20, 2019
  • Latest release: Aug 31, 2021
  • Number of updates: 18
  • Update frequency: every 49.0 days
  • Top authors: satollo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active / 2,218 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
This plugin's installer ran successfully

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

Server-side resources used by BuddyPress Addon for Newsletter
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.24 ▼0.62
Dashboard /wp-admin3.33 ▲0.0354.18 ▲0.70
Posts /wp-admin/edit.php3.38 ▲0.0359.94 ▲5.94
Add New Post /wp-admin/post-new.php5.91 ▲0.03106.85 ▼0.06
Media Library /wp-admin/upload.php3.26 ▲0.0346.89 ▲4.70

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: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

BuddyPress Addon for Newsletter: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲1113.55 ▲0.281.81 ▼0.0745.74 ▲2.99
Dashboard /wp-admin2,197 ▼65.83 ▲0.01116.85 ▲1.4346.65 ▼33.35
Posts /wp-admin/edit.php2,092 ▲31.99 ▼0.0488.47 ▲43.9539.96 ▲4.11
Add New Post /wp-admin/post-new.php1,537 ▲1823.06 ▼0.08714.11 ▲6.6261.40 ▼0.89
Media Library /wp-admin/upload.php1,385 ▼34.13 ▼0.18113.71 ▼1.0743.54 ▼2.16

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • 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 no errors were found, this is by no means 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 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
4 plugin tags: newsletter, registration, buddypress, subscription

newsletter-buddypress/buddypress.php 92% from 13 tests

The main file in "BuddyPress Addon for Newsletter" v. 1.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("newsletter-buddypress.php" instead of "buddypress.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin203 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP26147203

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity4.40
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.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
PNG images were not found in this plugin