10% comment-word-blacklist-manager

Code Review | Comments Word Blacklist Manager

WordPress plugin Comments Word Blacklist Manager scored 10% from 54 tests.

About plugin

  • Plugin page: comment-word-blac...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.9
  • WordPress version: 5.8.1
  • First release: Feb 26, 2019
  • Latest release: Feb 26, 2019
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: wartraxx93 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 393 total downloads


Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • The plugin cannot be installed
    • > User deprecated in wp-includes/functions.php+5495
    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.05MB] [CPU: ▼141.72ms] Passed 4 tests

This is a short check of server-side resources used by Comments Word Blacklist Manager
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.1632.92 ▲11.20
Dashboard /wp-admin3.11 ▲0.0642.79 ▼1.48
Posts /wp-admin/edit.php3.17 ▲0.0642.49 ▲4.24
Add New Post /wp-admin/post-new.php5.47 ▲0.0485.05 ▼569.98
Media Library /wp-admin/upload.php3.06 ▲0.0632.59 ▲0.34

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Comments Word Blacklist Manager
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,678 ▲8215.94 ▲0.329.97 ▲0.0447.25 ▼0.96
Dashboard /wp-admin2,973 ▲425.93 ▼0.15154.54 ▲11.24111.69 ▼5.61
Posts /wp-admin/edit.php2,739 ▲32.72 ▲0.0261.59 ▼4.4094.38 ▲5.18
Add New Post /wp-admin/post-new.php1,672 ▲17218.83 ▲0.28381.69 ▲15.40108.25 ▼5.05
Media Library /wp-admin/upload.php1,810 ▲35.04 ▼0.01140.01 ▼6.21123.84 ▲2.24

Uninstaller [IO: ▲0.00MB] [DB: ▲0.43MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/comment-word-blacklist-manager/comment-word-blacklist-manager.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (The new exclusions field) image required
The official readme.txt is a good inspiration

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

"Comments Word Blacklist Manager" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress 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 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected297 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PO File2213393

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity30.00
▷ Minimum class complexity30.00
▷ Maximum class complexity30.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods942.86%
▷ Public methods2095.24%
▷ Protected methods00.00%
▷ Private methods14.76%
▷ 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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin