72% no-more-bots

Code Review | No More Bots

WordPress plugin No More Bots scored72%from 54 tests.

About plugin

  • Plugin page: no-more-bots
  • Plugin version: 1.4.1.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-6.3.1
  • WordPress version: 6.3.1
  • First release: Mar 26, 2023
  • Latest release: Sep 19, 2023
  • Number of updates: 12
  • Update frequency: every 15.2 days
  • Top authors: futrx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /254 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲1.74MB] [CPU: ▲10.86ms] Passed 4 tests

A check of server-side resources used by No More Bots
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /5.17 ▲1.7051.85 ▲11.00
Dashboard /wp-admin5.11 ▲1.8068.57 ▲20.62
Posts /wp-admin/edit.php5.15 ▲1.7969.18 ▲16.18
Add New Post /wp-admin/post-new.php7.64 ▲1.7593.18 ▲1.25
Media Library /wp-admin/upload.php4.94 ▲1.7049.35 ▲14.99

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 504 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for No More Bots
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,017 ▲28218.66 ▲4.051.88 ▲0.0637.47 ▼10.96
Dashboard /wp-admin2,398 ▲2109.30 ▲3.40232.26 ▲117.85110.40 ▲64.85
Posts /wp-admin/edit.php2,325 ▲2366.25 ▲4.2382.80 ▲49.0474.93 ▲39.33
Add New Post /wp-admin/post-new.php1,764 ▲22921.57 ▼1.60714.74 ▲17.0138.87 ▼23.99
Media Library /wp-admin/upload.php1,446 ▲556.64 ▲2.44117.21 ▲15.6798.05 ▲55.16
Blocked List /wp-admin/crb_carbon_fields_container_blocked_list.php260.440.0813.08
No More Bots /wp-admin/crb_carbon_fields_container_no_more_bots.php260.440.085.20

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/no-more-bots/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
  • 121× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\File_Field' not found in wp-content/plugins/no-more-bots/vendor/htmlburger/carbon-fields/core/Field/Image_Field.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/no-more-bots/vendor/htmlburger/carbon-fields/core/Container/Condition/User_ID_Condition.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Time_Field' not found in wp-content/plugins/no-more-bots/vendor/htmlburger/carbon-fields/core/Field/Date_Time_Field.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Fulfillable\\Translator\\Array_Translator' not found in wp-content/plugins/no-more-bots/vendor/htmlburger/carbon-fields/core/Container/Fulfillable/Translator/Json_Translator.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Select_Field' not found in wp-content/plugins/no-more-bots/vendor/htmlburger/carbon-fields/core/Field/Radio_Image_Field.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/no-more-bots/vendor/htmlburger/carbon-fields/core/Field/Map_Field.php:12
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/no-more-bots/vendor/htmlburger/carbon-fields/templates/Container/user_meta.php:1
    • > PHP Notice
      Undefined variable: hideErrorsCookieName in wp-content/plugins/no-more-bots/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php on line 21
    • > PHP Fatal error
      Uncaught Error: Interface 'Carbon_Fields\\Container\\Fulfillable\\Fulfillable' not found in wp-content/plugins/no-more-bots/vendor/htmlburger/carbon-fields/core/Container/Fulfillable/Fulfillable_Collection.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/no-more-bots/vendor/htmlburger/carbon-fields/core/Field/Checkbox_Field.php:8

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/crb_carbon_fields_container_blocked_list.php
    • > Network (severe)
    wp-admin/crb_carbon_fields_container_blocked_list.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/crb_carbon_fields_container_no_more_bots.php
    • > Network (severe)
    wp-admin/crb_carbon_fields_container_no_more_bots.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

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: security, bot, spam, honeypot

no-more-bots/no-more-bots.php 92% from 13 tests

The primary PHP file in "No More Bots" version 1.4.1.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Domain Path: The domain path folder does not exist ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin33,707 lines of code in 447 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1777,11710,97116,381
PHP1772,8387,65810,325
PO File288981,1112,411
CSS92411,1622,271
Sass4936531,868
JSON400383
Markdown324068

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity8.10
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity2.08
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces37
Interfaces5
Traits0
Classes149
▷ Abstract classes117.38%
▷ Concrete classes13892.62%
▷ Final classes21.45%
Methods1,009
▷ Static methods15114.97%
▷ Public methods83482.66%
▷ Protected methods16516.35%
▷ Private methods100.99%
Functions108
▷ Named functions2119.44%
▷ Anonymous functions8780.56%
Constants50
▷ Global constants2448.00%
▷ Class constants2652.00%
▷ Public constants26100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.13MB with 0.11MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/logo.png129.66KB41.14KB▼ 68.27%
(invalid) assets/images/icon-36x36.png1.03KB0.00KB▼ 100.00%