89% no-bot-registration

Code Review | No-Bot Registration

WordPress plugin No-Bot Registration scored89%from 54 tests.

About plugin

  • Plugin page: no-bot-registration
  • Plugin version: 1.9.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 21, 2017
  • Latest release: Feb 6, 2023
  • Number of updates: 46
  • Update frequency: every 47.2 days
  • Top authors: adegans (100%)

Code review

54 tests

User reviews

22 reviews

Install metrics

1,000+ active /18,027 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

This is a short check of server-side resources used by No-Bot Registration
It is recommended to improve the following
  • CPU: Try to keep total CPU usage under 500.00ms (currently 1,648.31ms on /wp-admin/tools.php?page=ajdg-nobot-settings)
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1141.33 ▲3.44
Dashboard /wp-admin3.41 ▲0.0746.19 ▼12.22
Posts /wp-admin/edit.php3.47 ▲0.1144.26 ▼1.31
Add New Post /wp-admin/post-new.php6.00 ▲0.1178.70 ▼15.98
Media Library /wp-admin/upload.php3.34 ▲0.1138.09 ▲7.69
No-Bot Registration /wp-admin/tools.php?page=ajdg-nobot-settings4.551,648.31

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 12 new options
New WordPress options
can_compress_scripts
widget_recent-posts
ajdg_nobot_security_message
db_upgraded
widget_theysaidso_widget
widget_recent-comments
ajdg_nobot_questions
ajdg_nobot_hide_review
theysaidso_admin_options
ajdg_nobot_blacklist_message
...

Browser metrics Passed 4 tests

An overview of browser requirements for No-Bot Registration
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,874 ▲12813.78 ▼0.878.32 ▲6.6943.22 ▲3.83
Dashboard /wp-admin2,204 ▲235.62 ▼0.1197.98 ▼1.1143.55 ▼1.32
Posts /wp-admin/edit.php2,103 ▲32.04 ▲0.0834.94 ▼2.6133.35 ▼0.27
Add New Post /wp-admin/post-new.php1,533 ▲523.09 ▲0.40644.99 ▼12.2566.16 ▲14.27
Media Library /wp-admin/upload.php1,403 ▲34.11 ▼0.10114.44 ▲13.8249.27 ▲5.53
No-Bot Registration /wp-admin/tools.php?page=ajdg-nobot-settings1,2202.0322.6566.42

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

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
These attributes need your attention:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
Please take inspiration from this readme.txt

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

"No-Bot Registration" version 1.9.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin481 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1112132436
CSS17445

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icon-close.png0.44KB0.49KB0.00%