Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼267.06ms] Passed 4 tests
Server-side resources used by Block Spammers
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.18 | 37.64 ▲17.26 |
Dashboard /wp-admin | 3.14 ▲0.09 | 40.74 ▼2.68 |
Posts /wp-admin/edit.php | 3.19 ▲0.09 | 42.92 ▲0.70 |
Add New Post /wp-admin/post-new.php | 5.50 ▲0.07 | 100.52 ▼1,066.18 |
Media Library /wp-admin/upload.php | 3.08 ▲0.08 | 35.58 ▼0.07 |
Block Spammers /wp-admin/options-general.php?page=wbs-admin | 3.03 | 28.35 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Block Spammers
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,654 ▲72 | 15.94 ▲0.34 | 7.97 ▲0.04 | 44.98 ▼4.15 |
Dashboard /wp-admin | 2,935 ▲82 | 5.90 ▲0.03 | 134.03 ▲2.19 | 105.47 ▲1.51 |
Posts /wp-admin/edit.php | 2,708 ▲2 | 2.69 ▼0.00 | 65.30 ▲0.76 | 94.43 ▲3.59 |
Add New Post /wp-admin/post-new.php | 1,484 ▼554 | 18.58 ▼0.74 | 351.56 ▼1.21 | 111.12 ▲9.37 |
Media Library /wp-admin/upload.php | 1,777 ▲2 | 5.02 ▲0.01 | 150.37 ▼14.75 | 122.38 ▲10.83 |
Block Spammers /wp-admin/options-general.php?page=wbs-admin | 1,135 | 2.34 | 56.14 | 89.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=wbs-admin
- > User deprecated in wp-includes/functions.php+5495
get_option was called with an argument that is deprecated since version 5.5.0! The "blacklist_keys" option key has been renamed to "disallowed_keys".
- > GET request to /wp-admin/options-general.php?page=wbs-admin
- > User deprecated in wp-includes/functions.php+5221
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=wbs-admin
- > User deprecated in wp-includes/functions.php+5221
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 0% from 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/block-spammers/block-spammers.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/block-spammers/block-spammers-admin.php:385
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: blocking, spam, ip, comments
block-spammers/block-spammers.php 92% from 13 tests
The entry point to "Block Spammers" version 0.3 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin499 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 68 | 61 | 394 |
PO File | 1 | 22 | 26 | 69 |
JavaScript | 1 | 2 | 10 | 20 |
Markdown | 1 | 5 | 0 | 16 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 43.00 |
▷ Minimum class complexity | 43.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 3.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin