47% stopwords-for-comments

Code Review | Stopwords for comments

WordPress plugin Stopwords for comments scored47%from 54 tests.

About plugin

  • Plugin page: stopwords-for-com...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7.2-5.7.2
  • WordPress version: 6.3.1
  • First release: Jun 27, 2021
  • Latest release: Jun 27, 2021
  • Number of updates: 2
  • Update frequency: every 11.5 days
  • Top authors: rndsand81 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /255 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.93MB] [CPU: ▼29.32ms] Passed 4 tests

Server-side resources used by Stopwords for comments
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0337.67 ▼3.26
Dashboard /wp-admin3.02 ▼0.2926.24 ▼22.16
Posts /wp-admin/edit.php3.02 ▼0.3425.80 ▼21.10
Add New Post /wp-admin/post-new.php3.02 ▼2.8722.68 ▼64.91
Media Library /wp-admin/upload.php3.02 ▼0.2123.37 ▼9.12
Stopwords for comments /wp-admin/edit-comments.php?page=stopwords-for-comments/index.php3.0723.13
All Comments /wp-admin/edit-comments.php3.0723.40

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 7 new files
Database: 1 new table, 6 new options
New tables
wp_stopwords_for_comments
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Stopwords for comments
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲7613.30 ▼1.001.59 ▼0.4741.50 ▼1.65
Dashboard /wp-admin2,228 ▲404.88 ▼0.02110.64 ▲6.7942.42 ▼1.41
Posts /wp-admin/edit.php2,114 ▲252.03 ▼0.0242.05 ▲2.2635.42 ▼1.71
Add New Post /wp-admin/post-new.php1,536 ▲2223.42 ▲5.82659.88 ▼7.1446.15 ▼9.20
Media Library /wp-admin/upload.php1,410 ▲194.24 ▲0.0397.11 ▼3.0843.72 ▲0.02
Stopwords for comments /wp-admin/edit-comments.php?page=stopwords-for-comments/index.php8072.0928.6034.16
All Comments /wp-admin/edit-comments.php1,8182.3844.4331.43

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • Zombie tables were found after uninstall: 1 table
    • wp_stopwords_for_comments
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit-comments.php
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

SRP 0% 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 items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/stopwords-for-comments/index.php
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/post.php): failed to open stream: No such file or directory in wp-content/plugins/stopwords-for-comments/functions.php on line 18
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/stopwords-for-comments/functions.php on line 18
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/post.php' (include_path='.:/usr/share/php') in wp-content/plugins/stopwords-for-comments/functions.php on line 18

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
    • > GET request to /wp-admin/edit-comments.php?page=stopwords-for-comments/index.php
    • > Network (severe)
    https://okuke73wiq.a.trbcdn.net/l.woff2 - Failed to load resource: net::ERR_NAME_NOT_RESOLVED

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: wordpress, stopwords, comment

stopwords-for-comments/functions.php 92% from 13 tests

The main PHP file in "Stopwords for comments" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("stopwords-for-comments.php" instead of "functions.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
No dangerous file extensions were detected335 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS1400166
PHP211327120
JavaScript126949

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
cover.png56.76KB24.84KB▼ 56.23%