84% asyncronous-bbpress-subscriptions

Code Review | AsynCRONous bbPress Subscriptions

WordPress plugin AsynCRONous bbPress Subscriptions scored84%from 54 tests.

About plugin

  • Plugin page: asyncronous-bbpre...
  • Plugin version: 3.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.4
  • WordPress version: 6.3.1
  • First release: Mar 11, 2015
  • Latest release: Jul 6, 2020
  • Number of updates: 51
  • Update frequency: every 38.1 days
  • Top authors: mechter (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

200+ active /5,595 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.13ms] Passed 4 tests

A check of server-side resources used by AsynCRONous bbPress Subscriptions
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0539.62 ▼3.99
Dashboard /wp-admin3.36 ▲0.0549.70 ▼9.49
Posts /wp-admin/edit.php3.41 ▲0.0552.26 ▼3.63
Add New Post /wp-admin/post-new.php5.94 ▲0.05114.89 ▲20.78
Media Library /wp-admin/upload.php3.28 ▲0.0537.46 ▲0.61

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for AsynCRONous bbPress Subscriptions
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.331.63 ▼0.1043.14 ▲0.80
Dashboard /wp-admin2,195 ▲185.62 ▼0.0589.55 ▲1.0442.45 ▼0.61
Posts /wp-admin/edit.php2,100 ▼02.02 ▼0.0140.21 ▲2.8737.32 ▼0.95
Add New Post /wp-admin/post-new.php1,535 ▲918.07 ▼5.11623.51 ▼71.7066.18 ▲12.91
Media Library /wp-admin/upload.php1,394 ▼64.24 ▲0.0198.21 ▼13.0541.23 ▼5.19

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • 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 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/asyncronous-bbpress-subscriptions/asyncronous-bbpress-subscriptions.php:14

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

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: wp cron, cron, subscription, notifications, email...

asyncronous-bbpress-subscriptions/asyncronous-bbpress-subscriptions.php Passed 13 tests

The principal PHP file in "AsynCRONous bbPress Subscriptions" v. 3.7 is loaded by WordPress automatically on each request
70 characters long description:
Email notifications done right. No BCC lists, no added page load time.

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

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity8.33
▷ Minimum class complexity8.00
▷ Maximum class complexity9.00
Average method complexity3.44
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods9
▷ Static methods666.67%
▷ Public methods444.44%
▷ Protected methods555.56%
▷ Private methods00.00%
Functions4
▷ Named functions4100.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