89% cellarweb-chatbot-blocker

Code Review | ChatBot Blocker by CellarWeb

WordPress plugin ChatBot Blocker by CellarWeb scored89%from 54 tests.

About plugin

  • Plugin page: cellarweb-chatbot...
  • Plugin version: 1.01
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.4
  • WordPress version: 6.3.1
  • First release: Oct 31, 2023
  • Latest release: Nov 1, 2023
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: rhellewell@gmail.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /11 total downloads

Benchmarks

Plugin footprint 83% 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.03MB] [CPU: ▼0.72ms] Passed 4 tests

An overview of server-side resources used by ChatBot Blocker by CellarWeb
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.12 ▲3.90
Dashboard /wp-admin3.34 ▲0.0448.91 ▼2.75
Posts /wp-admin/edit.php3.40 ▲0.0446.65 ▲2.53
Add New Post /wp-admin/post-new.php5.93 ▲0.0485.46 ▼6.54
Media Library /wp-admin/upload.php3.27 ▲0.0436.10 ▲4.10

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
cw_chatbot_chatbot_content
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for ChatBot Blocker by CellarWeb
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.72 ▲0.371.89 ▲0.2744.31 ▲1.12
Dashboard /wp-admin2,198 ▲275.62 ▲0.1087.50 ▲0.4837.57 ▼4.57
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0432.50 ▼2.6732.03 ▼3.23
Add New Post /wp-admin/post-new.php1,526 ▼023.25 ▲0.11664.41 ▼45.1359.86 ▼4.93
Media Library /wp-admin/upload.php1,403 ▲34.22 ▼0.0398.66 ▼5.2645.59 ▲4.98

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 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
4 plugin tags: robots, robotstxt, chatgpt, chatbot

cellarweb-chatbot-blocker/cellarweb-chatbot-blocker.php 85% from 13 tests

The main PHP script in "ChatBot Blocker by CellarWeb" version 1.01 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 206 characters long)
  • Requires at least: Required version does not match the one declared in readme.txt ("5.4" instead of "5.5")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin168 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP342257168

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods228.57%
▷ Public methods685.71%
▷ Protected methods114.29%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants3
▷ 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
1 PNG file occupies 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-01.png93.87KB34.90KB▼ 62.82%