10% comment-blacklist-manager

Code Review | Comment Blacklist Manager

WordPress plugin Comment Blacklist Manager scored10%from 54 tests.

About plugin

  • Plugin page: comment-blacklist...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.3.2
  • WordPress version: 6.3.1
  • First release: May 21, 2014
  • Latest release: Mar 24, 2020
  • Number of updates: 14
  • Update frequency: every 152.4 days
  • Top authors: norcross (64.29%)grantsplorp (42.86%)

Code review

54 tests

User reviews

5 reviews

Install metrics

800+ active /6,475 total downloads


Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • Install procedure had errors
    • > User deprecated in wp-includes/functions.php+5737
    Function get_option was called with an argument that is deprecated since version 5.5.0! The "blacklist_keys" option key has been renamed to "disallowed_keys".

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.03ms] Passed 4 tests

An overview of server-side resources used by Comment Blacklist Manager
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.95 ▼3.72
Dashboard /wp-admin3.37 ▲0.0647.34 ▼3.67
Posts /wp-admin/edit.php3.48 ▲0.1347.01 ▼4.50
Add New Post /wp-admin/post-new.php5.95 ▲0.0683.95 ▼4.21
Media Library /wp-admin/upload.php3.29 ▲0.0638.43 ▲0.91

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Comment Blacklist Manager
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.21 ▼1.371.83 ▼0.3242.35 ▼1.08
Dashboard /wp-admin2,209 ▲214.81 ▼0.09103.16 ▼3.5838.52 ▼8.45
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0137.08 ▼1.0331.44 ▼1.65
Add New Post /wp-admin/post-new.php1,533 ▼023.44 ▲0.02635.73 ▼54.3752.43 ▼9.85
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.0294.34 ▼5.0039.95 ▼1.63

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/comment-blacklist-manager/comment-blacklist-manager.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: blacklist, comments, spam

comment-blacklist-manager/comment-blacklist-manager.php Passed 13 tests

The primary PHP file in "Comment Blacklist Manager" version 1.0.1 is used by WordPress to initiate all plugin functionality
64 characters long description:
Add known terms into the WordPress blacklist keys to manage spam

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin302 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PO File2213393

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.28
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity2.27
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods940.91%
▷ Public methods2195.45%
▷ Protected methods00.00%
▷ Private methods14.55%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants3100.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