84% wangguard-blacklisted-words-add-on

Code Review | WangGuard Blacklisted Words Add-On

WordPress plugin WangGuard Blacklisted Words Add-On scored84%from 54 tests.

About plugin

  • Plugin page: wangguard-blackli...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.5
  • WordPress version: 6.3.1
  • First release: Apr 22, 2014
  • Latest release: Jun 7, 2016
  • Number of updates: 7
  • Update frequency: every 111.1 days
  • Top authors: j.conti (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,837 total downloads

Benchmarks

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 gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.98ms] Passed 4 tests

Analyzing server-side resources used by WangGuard Blacklisted Words Add-On
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0335.94 ▼3.69
Dashboard /wp-admin3.33 ▲0.0349.29 ▲0.24
Posts /wp-admin/edit.php3.38 ▲0.0251.20 ▼1.26
Add New Post /wp-admin/post-new.php5.91 ▲0.0298.71 ▼3.22
Media Library /wp-admin/upload.php3.25 ▲0.0235.26 ▲2.96

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WangGuard Blacklisted Words Add-On
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲3714.24 ▼0.101.84 ▲0.1640.80 ▼2.50
Dashboard /wp-admin2,207 ▲305.51 ▼0.1196.53 ▲8.5040.84 ▼0.40
Posts /wp-admin/edit.php2,110 ▲71.98 ▼0.0341.12 ▲1.6037.65 ▼2.53
Add New Post /wp-admin/post-new.php1,537 ▲1123.15 ▼0.05701.58 ▲39.7472.70 ▲17.47
Media Library /wp-admin/upload.php1,409 ▲94.19 ▲0.0096.31 ▼12.1542.82 ▲0.41

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 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wangguard-blacklisted-words-add-on/wangguard-blacklisted-words.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wangguard-blacklisted-words-add-on/wangguard-blacklisted-words-bp.php:56
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_site_option() in wp-content/plugins/wangguard-blacklisted-words-add-on/wangguard-blacklisted-words-wpmu.php:80

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: registration, block words, blacklist, wangguardaddon, buddypress...

wangguard-blacklisted-words-add-on/wangguard-blacklisted-words.php 85% from 13 tests

"WangGuard Blacklisted Words Add-On" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 228 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wangguard-blacklisted-words-add-on.php" instead of "wangguard-blacklisted-words.php")

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
Everything looks great! No dangerous files found in this plugin248 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP48680248

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin