Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.47MB] [CPU: ▼6.38ms] Passed 4 tests
An overview of server-side resources used by WordPress Stop and Block bots plugin Anti bots
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.00 ▲0.54 | 43.43 ▼0.72 |
Dashboard /wp-admin | 3.81 ▲0.46 | 55.09 ▼10.91 |
Posts /wp-admin/edit.php | 3.86 ▲0.50 | 50.77 ▲0.84 |
Add New Post /wp-admin/post-new.php | 6.34 ▲0.46 | 88.69 ▼2.57 |
Media Library /wp-admin/upload.php | 3.67 ▲0.44 | 41.90 ▼11.32 |
Dashboard /wp-admin/admin.php?page=anti_bots_plugin | 3.66 | 39.65 |
Settings /wp-admin/admin.php?page=settings-anti-bots | 3.64 | 36.52 |
Visits Log /wp-admin/admin.php?page=antibots_my-custom-submenu-page | 3.64 | 36.74 |
Server storage [IO: ▲0.81MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 74 new files
Database: 2 new tables, 11 new options
New tables |
---|
wp_antibots_visitorslog |
wp_antibots_fingerprint |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
antibots_installed |
widget_recent-posts |
widget_recent-comments |
antibots_string_whitelist |
antibots_version |
antibots_was_activated |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
A check of browser resources used by WordPress Stop and Block bots plugin Anti bots
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,907 ▲136 | 14.33 ▼0.04 | 1.79 ▼0.35 | 43.47 ▲0.50 |
Dashboard /wp-admin | 2,269 ▲95 | 5.68 ▲0.11 | 108.34 ▲2.17 | 70.92 ▲24.98 |
Posts /wp-admin/edit.php | 2,188 ▲88 | 2.75 ▲0.77 | 44.92 ▲7.61 | 75.70 ▲39.92 |
Add New Post /wp-admin/post-new.php | 1,611 ▲85 | 23.79 ▲0.39 | 661.00 ▼122.31 | 37.25 ▼22.13 |
Media Library /wp-admin/upload.php | 1,480 ▲83 | 5.14 ▲0.96 | 108.95 ▼68.73 | 86.83 ▲23.39 |
Dashboard /wp-admin/admin.php?page=anti_bots_plugin | 1,122 | 2.42 | 31.32 | 45.86 |
Settings /wp-admin/admin.php?page=settings-anti-bots | 1,035 | 2.56 | 31.23 | 43.12 |
Visits Log /wp-admin/admin.php?page=antibots_my-custom-submenu-page | 1,456 | 3.05 | 50.81 | 39.93 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 8 options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- bill_show_warnings
- antibots_string_whitelist
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/antibots/includes/checkup/class_bill_catch_errors.php
- > /wp-content/plugins/antibots/includes/checkup/bill_class_diagnose.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'AntibotsWPSettings\\antibot_Page' not found in wp-content/plugins/antibots/settings/options/plugin_options_tabbed.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
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 to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Visitors's log table), #2 (Dashboard), #3 (Settings Page)
antibots/antibot.php 92% from 13 tests
The main PHP script in "WordPress Stop and Block bots plugin Anti bots" version 1.11 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("antibots.php" instead of "antibot.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected7,127 lines of code in 48 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 422 | 483 | 3,945 |
CSS | 5 | 179 | 62 | 1,726 |
JavaScript | 12 | 249 | 173 | 1,173 |
PO File | 1 | 107 | 109 | 283 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 10.81 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 3.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 85 | |
▷ Static methods | 8 | 9.41% |
▷ Public methods | 83 | 97.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 2.35% |
Functions | 48 | |
▷ Named functions | 47 | 97.92% |
▷ Anonymous functions | 1 | 2.08% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
18 PNG files occupy 0.12MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo.png | 26.23KB | 9.99KB | ▼ 61.91% |
assets/images/info.png | 1.49KB | 1.28KB | ▼ 14.32% |
assets/images/protect.png | 0.30KB | 0.15KB | ▼ 48.20% |
includes/checkup/bell.png | 1.07KB | 0.27KB | ▼ 74.45% |
assets/images/sort_asc_disabled.png | 0.14KB | 0.25KB | 0.00% |