84% wp-automatic-spam-blacklister

Code Review | WP Spam Blacklister

WordPress plugin WP Spam Blacklister scored84%from 54 tests.

About plugin

  • Plugin page: wp-automatic-spam...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4
  • WordPress version: 6.3.1
  • First release: Oct 24, 2012
  • Latest release: Oct 24, 2012
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: Blue Liquid Designs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /5,089 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Server-side resources used by WP Spam Blacklister
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.05 ▼3.41
Dashboard /wp-admin3.32 ▲0.0146.97 ▼5.21
Posts /wp-admin/edit.php3.37 ▲0.0145.35 ▼2.16
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.28 ▼10.52
Media Library /wp-admin/upload.php3.25 ▲0.0134.52 ▲0.62

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
bldSpamBlacklister_install
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for WP Spam Blacklister
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.19 ▼1.491.76 ▲0.0343.60 ▼5.59
Dashboard /wp-admin2,209 ▲184.88 ▼0.02102.39 ▼6.4939.48 ▼7.60
Posts /wp-admin/edit.php2,089 ▲212.02 ▼0.0235.41 ▼2.0731.59 ▼2.02
Add New Post /wp-admin/post-new.php1,533 ▼323.46 ▲0.44692.63 ▲66.6662.51 ▼2.66
Media Library /wp-admin/upload.php1,382 ▼64.15 ▼0.0297.70 ▲0.2440.06 ▼2.07

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • bldSpamBlacklister_install
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-automatic-spam-blacklister/wp-automatic-spam-blacklister.php:31

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === wp-automatic-spam-blacklister === )
The official readme.txt is a good inspiration

wp-automatic-spam-blacklister/wp-automatic-spam-blacklister.php Passed 13 tests

Analyzing the main PHP file in "WP Spam Blacklister" version 1.0.0
108 characters long description:
Automatically places IP address from marked spam comment in the comments blacklist (Settings -> Discussion).

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin58 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1253158

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods6100.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin