93% no-bot-registration

Code Review | No-Bot Registration

WordPress plugin No-Bot Registration scored 93% from 54 tests.

About plugin

  • Plugin page: no-bot-registration
  • Plugin version: 1.7.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.9
  • WordPress version: 5.8.1
  • First release: Feb 21, 2017
  • Latest release: Jan 26, 2022
  • Number of updates: 34
  • Update frequency: every 52.9 days
  • Top authors: adegans (100%)

Code review

54 tests

User reviews

18 reviews

Install metrics

800+ active / 10,100 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼142.77ms] 75% from 4 tests

An overview of server-side resources used by No-Bot Registration
Please have a look at the following items
  • CPU: Total CPU usage must kept under 500.00ms (currently 2,204.23ms on /wp-admin/tools.php?page=ajdg-nobot-settings)
PageMemory (MB)CPU Time (ms)
Home /2.93 ▲0.1025.04 ▲0.88
Dashboard /wp-admin3.16 ▲0.1032.30 ▼2.64
Posts /wp-admin/edit.php3.21 ▲0.0931.42 ▼5.34
Add New Post /wp-admin/post-new.php5.52 ▲0.0868.98 ▼563.98
Media Library /wp-admin/upload.php3.10 ▲0.1024.14 ▲1.12
No-Bot Registration /wp-admin/tools.php?page=ajdg-nobot-settings3.632,204.23

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for No-Bot Registration
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,828 ▲20316.23 ▲0.298.59 ▲3.4278.29 ▼22.57
Dashboard /wp-admin2,937 ▲416.12 ▼0.03116.58 ▼19.93169.83 ▼7.72
Posts /wp-admin/edit.php2,744 ▲43.22 ▼0.0065.70 ▼0.71142.38 ▼3.54
Add New Post /wp-admin/post-new.php3,812 ▼318.82 ▼0.58407.05 ▼45.76157.32 ▼19.70
Media Library /wp-admin/upload.php1,756 ▲45.50 ▼0.06139.88 ▼3.80185.37 ▼0.85
No-Bot Registration /wp-admin/tools.php?page=ajdg-nobot-settings1,6522.3860.40169.07

Uninstaller [IO: ▲0.00MB] [DB: ▲0.05MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% 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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/no-bot-registration/no-bot-registration.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

no-bot-registration/no-bot-registration.php 92% from 13 tests

"No-Bot Registration" version 1.7.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Everything looks great! No dangerous files found in this plugin449 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions17100.00%
▷ Anonymous functions00.00%
▷ 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 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings