10% booter-bots-crawlers-manager

Code Review | Booter - Bots & Crawlers Manager

WordPress plugin Booter - Bots & Crawlers Manager scored10%from 54 tests.

About plugin

  • Plugin page: booter-bots-crawl...
  • Plugin version: 1.5.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1
  • WordPress version: 6.3.1
  • First release: May 21, 2019
  • Latest release: Nov 3, 2022
  • Number of updates: 19
  • Update frequency: every 66.4 days
  • Top authors: upress (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

9,000+ active /49,928 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/booter-bots-crawlers-manager/includes/Updater.php+89
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.47MB] [CPU: ▲1.55ms] Passed 4 tests

An overview of server-side resources used by Booter - Bots & Crawlers Manager
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.92 ▲0.4547.24 ▲7.34
Dashboard /wp-admin3.81 ▲0.5053.33 ▼0.85
Posts /wp-admin/edit.php3.86 ▲0.5053.70 ▲4.54
Add New Post /wp-admin/post-new.php6.35 ▲0.4688.83 ▼4.83
Media Library /wp-admin/upload.php3.69 ▲0.4643.16 ▲7.73
Booter - Bots & Crawlers Manager /wp-admin/options-general.php?page=booter3.9755.63

Server storage [IO: ▲0.84MB] [DB: ▲0.04MB] 67% from 3 tests

Input-output and database impact of this plugin
Please fix the following
  • Illegal file modification found: 2 files (1.19KB) outside of "wp-content/plugins/booter-bots-crawlers-manager/" and "wp-content/uploads/"
    • (new file) wp-content/mu-plugins/booter-crawlers-manager-mu.php
    • (new file) robots.txt
Filesystem: 37 new files
Database: 1 new table, 8 new options
New tables
wp_booter_404s
New WordPress options
booter_version
widget_recent-comments
booter_settings
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Booter - Bots & Crawlers Manager
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,856 ▲9514.39 ▲0.101.73 ▼0.0445.42 ▲1.85
Dashboard /wp-admin2,259 ▲825.58 ▼0.0486.05 ▼7.1741.82 ▲1.58
Posts /wp-admin/edit.php2,167 ▲641.97 ▼0.0234.83 ▼7.9733.05 ▼4.28
Add New Post /wp-admin/post-new.php1,586 ▲5823.61 ▲0.43670.46 ▲29.6068.90 ▲19.64
Media Library /wp-admin/upload.php1,467 ▲734.23 ▲0.01100.51 ▼10.1743.84 ▼2.43
Booter - Bots & Crawlers Manager /wp-admin/options-general.php?page=booter11,3824.53118.1543.50

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_booter_404s
  • This plugin does not fully uninstall, leaving 8 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • booter_version
    • booter_settings

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/booter-bots-crawlers-manager/booter-crawlers-manager.php
    • > /wp-content/plugins/booter-bots-crawlers-manager/booter-contstants.php
    • > /wp-content/plugins/booter-bots-crawlers-manager/mu-plugins/booter-crawlers-manager-mu.php
  • 13× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/booter-bots-crawlers-manager/views/options-tabs/block.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/booter-bots-crawlers-manager/views/options-tabs/disavow.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/booter-bots-crawlers-manager/views/options-tabs/rate-limit.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url_raw() in wp-content/plugins/booter-bots-crawlers-manager/views/options-tabs/about.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/booter-bots-crawlers-manager/views/options.php:9
    • > PHP Warning
      array_map() expects parameter 1 to be a valid callback, function 'sanitize_text_field' not found or invalid function name in wp-content/plugins/booter-bots-crawlers-manager/views/options-tabs/bad-bots.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/booter-bots-crawlers-manager/views/options-tabs/help.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Upress\\Booter\\Log404' not found in wp-content/plugins/booter-bots-crawlers-manager/views/options-tabs/404-log.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/booter-bots-crawlers-manager/views/options-tabs/debug.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_transient() in wp-content/plugins/booter-bots-crawlers-manager/views/options-tabs/bad-bots.php:4

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 is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: hosting, security, request, rate limit, upress

booter-bots-crawlers-manager/booter-crawlers-manager.php 85% from 13 tests

"Booter - Bots & Crawlers Manager" version 1.5.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("booter-bots-crawlers-manager.php" instead of "booter-crawlers-manager.php")

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 plugin3,065 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP253993552,225
PO File1254305837
JavaScript2022
CSS1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity23.40
▷ Minimum class complexity6.00
▷ Maximum class complexity42.00
Average method complexity2.77
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods79
▷ Static methods3848.10%
▷ Public methods6683.54%
▷ Protected methods67.59%
▷ Private methods78.86%
Functions7
▷ Named functions00.00%
▷ Anonymous functions7100.00%
Constants7
▷ Global constants7100.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
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/logo-file-NEW-03-min.png1.00KB1.00KB0.00%
assets/images/upress_logo.png8.59KB8.60KB0.00%