Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼9.62ms] Passed 4 tests
An overview of server-side resources used by Easy Anti Spam Bot
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 35.54 ▼2.78 |
Dashboard /wp-admin | 3.34 ▼0.00 | 44.64 ▼18.21 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 42.77 ▼6.32 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 81.87 ▼11.16 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 35.19 ▲2.03 |
Anti Spam Bot /wp-admin/options-general.php?page=e-anti-spam-bot | 3.23 | 31.00 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Easy Anti Spam Bot
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲67 | 14.35 ▲0.07 | 1.63 ▲0.03 | 42.52 ▲2.62 |
Dashboard /wp-admin | 2,219 ▲45 | 5.57 ▼0.01 | 82.73 ▼21.28 | 44.87 ▲1.65 |
Posts /wp-admin/edit.php | 2,125 ▲25 | 2.00 ▲0.02 | 36.72 ▲1.18 | 41.39 ▲7.28 |
Add New Post /wp-admin/post-new.php | 1,544 ▲18 | 23.24 ▼0.01 | 659.28 ▼15.78 | 60.69 ▲7.05 |
Media Library /wp-admin/upload.php | 1,427 ▲30 | 4.25 ▲0.01 | 95.22 ▼4.41 | 46.94 ▼0.84 |
Anti Spam Bot /wp-admin/options-general.php?page=e-anti-spam-bot | 808 | 2.05 | 24.11 | 32.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Screenshots: No descriptions were found for these screenshots #1, #2 in easy-anti-spam-bots/assets to your readme.txt
easy-anti-spam-bots/easy-anti-spam-bot.php 92% from 13 tests
The entry point to "Easy Anti Spam Bot" version 1.0.4 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("easy-anti-spam-bots.php" instead of "easy-anti-spam-bot.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
There were no executable files found in this plugin964 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 181 | 488 | 748 |
Markdown | 2 | 39 | 0 | 110 |
JSON | 3 | 0 | 0 | 82 |
JavaScript | 1 | 7 | 3 | 24 |
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 code | 0.50 |
Average class complexity | 18.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 3.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 24 | 48.00% |
▷ Public methods | 48 | 96.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.00% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin