78% stop-naughty-words

Code Review | Stop Naughty Words

WordPress plugin Stop Naughty Words scored 78% from 54 tests.

About plugin

  • Plugin page: stop-naughty-words
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7
  • WordPress version: 6.3.1
  • First release: Mar 4, 2017
  • Latest release: Mar 5, 2017
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: vietdex (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 476 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.09ms] Passed 4 tests

A check of server-side resources used by Stop Naughty Words
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.13 ▼5.72
Dashboard /wp-admin3.31 ▲0.0149.25 ▲3.97
Posts /wp-admin/edit.php3.36 ▲0.0048.31 ▲2.02
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.19 ▼5.23
Media Library /wp-admin/upload.php3.23 ▲0.0034.90 ▲0.58

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

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

Browser metrics Passed 4 tests

Stop Naughty Words: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.22 ▼1.131.74 ▼0.2743.00 ▲2.04
Dashboard /wp-admin2,204 ▲165.79 ▲0.87103.33 ▲1.5636.54 ▼7.26
Posts /wp-admin/edit.php2,093 ▲42.12 ▲0.1038.46 ▼1.0734.21 ▼4.08
Add New Post /wp-admin/post-new.php1,531 ▲1718.66 ▲1.00598.79 ▼11.8657.13 ▼3.68
Media Library /wp-admin/upload.php1,386 ▼54.17 ▼0.0499.22 ▲2.3241.80 ▼0.95
Naughty Words Setting /wp-admin/Naughty-Words.php260.440.1114.84

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stop-naughty-words/stop-naughty-words.php:15

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/Naughty-Words.php
    • > Network (severe)
    wp-admin/Naughty-Words.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
7 plugin tags: remove naughty words, remove stop words, remove words, content, comment...

stop-naughty-words/stop-naughty-words.php 92% from 13 tests

The primary PHP file in "Stop Naughty Words" version 1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 169 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin88 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1191188

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions4
▷ Named functions4100.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
There are no PNG files in this plugin