90% bbp-auto-block-spammers

Code Review | bbP Auto Block Spammers

WordPress plugin bbP Auto Block Spammers scored90%from 54 tests.

About plugin

  • Plugin page: bbp-auto-block-sp...
  • Plugin version: 1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1
  • WordPress version: 6.3.1
  • First release: Nov 9, 2018
  • Latest release: Dec 23, 2022
  • Number of updates: 19
  • Update frequency: every 79.3 days
  • Top authors: shanebp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /2,472 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: ▼2.87ms] Passed 4 tests

Analyzing server-side resources used by bbP Auto Block Spammers
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.99 ▼0.94
Dashboard /wp-admin3.34 ▲0.0347.38 ▼3.02
Posts /wp-admin/edit.php3.39 ▲0.0349.65 ▼0.33
Add New Post /wp-admin/post-new.php5.92 ▲0.0395.11 ▼7.19
Media Library /wp-admin/upload.php3.26 ▲0.0339.74 ▲3.12

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

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

Browser metrics Passed 4 tests

A check of browser resources used by bbP Auto Block Spammers
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.78 ▲0.411.73 ▲0.0044.02 ▼4.99
Dashboard /wp-admin2,207 ▲225.80 ▲0.9397.68 ▼15.6940.53 ▼4.43
Posts /wp-admin/edit.php2,095 ▲62.01 ▲0.0141.83 ▲6.3239.19 ▲1.44
Add New Post /wp-admin/post-new.php1,546 ▲1318.31 ▼5.02648.20 ▼12.9487.33 ▲35.01
Media Library /wp-admin/upload.php1,389 ▲44.29 ▲0.06108.62 ▼7.8849.76 ▼3.23

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • _bbp_spam_limit
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: block, bbpress, spam

bbp-auto-block-spammers/bbp-auto-block.php 92% from 13 tests

The principal PHP file in "bbP Auto Block Spammers" v. 1.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bbp-auto-block-spammers.php" instead of "bbp-auto-block.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin127 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP48513127

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin