84% bbpress-auto-delete-spam-replies

Code Review | bbPress: Auto Delete Spam Replies

WordPress plugin bbPress: Auto Delete Spam Replies scored84%from 54 tests.

About plugin

  • Plugin page: bbpress-auto-dele...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.7
  • WordPress version: 6.3.1
  • First release: Nov 2, 2013
  • Latest release: Dec 29, 2016
  • Number of updates: 9
  • Update frequency: every 128.1 days
  • Top authors: adbox (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,746 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.13ms] Passed 4 tests

Analyzing server-side resources used by bbPress: Auto Delete Spam Replies
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.04 ▼3.70
Dashboard /wp-admin3.33 ▲0.0251.65 ▼1.74
Posts /wp-admin/edit.php3.38 ▲0.0248.48 ▼2.75
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.22 ▼12.33
Media Library /wp-admin/upload.php3.25 ▲0.0243.37 ▲3.10

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for bbPress: Auto Delete Spam Replies
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.28 ▼0.381.63 ▼0.1136.78 ▼5.18
Dashboard /wp-admin2,195 ▲155.48 ▼0.2087.44 ▼3.7440.23 ▼7.50
Posts /wp-admin/edit.php2,100 ▼31.95 ▼0.0437.05 ▼4.6136.96 ▼0.56
Add New Post /wp-admin/post-new.php1,526 ▼022.78 ▼0.33651.20 ▼9.5853.85 ▼7.28
Media Library /wp-admin/upload.php1,397 ▼34.22 ▲0.00102.71 ▼1.2245.82 ▼1.86

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
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bbpress-auto-delete-spam-replies/modules/module.settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbpress-auto-delete-spam-replies/modules/module.cron.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/bbpress-auto-delete-spam-replies/bbpress-auto-delete-spam-replies.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Please fix this invalid url: "mailto:Hudson.Atwell@gmail.com"
The official readme.txt is a good inspiration

bbpress-auto-delete-spam-replies/bbpress-auto-delete-spam-replies.php Passed 13 tests

The entry point to "bbPress: Auto Delete Spam Replies" version 1.0.1 is a PHP file that has certain tags in its header comment area
52 characters long description:
Automatically delete bbPress replies marked as spam.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin103 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions7100.00%
▷ Anonymous functions00.00%
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected