Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼24.61ms] Passed 4 tests
This is a short check of server-side resources used by Easy Country Spam Blocker
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 44.60 ▲2.67 |
Dashboard /wp-admin | 3.45 ▲0.14 | 47.21 ▼32.88 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 50.49 ▼32.99 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 83.29 ▼24.56 |
Media Library /wp-admin/upload.php | 3.38 ▲0.14 | 37.45 ▼8.01 |
Easy Country Spam Blocker /wp-admin/options-general.php?page=mi-ecsb | 3.37 | 34.94 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
mi-ecsb_redirect_url |
widget_recent-comments |
Browser metrics Passed 4 tests
Easy Country Spam Blocker: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,922 ▲151 | 13.54 ▼1.14 | 8.41 ▲6.39 | 43.16 ▲0.28 |
Dashboard /wp-admin | 2,211 ▲29 | 5.81 ▲0.83 | 102.09 ▼69.03 | 40.44 ▼42.41 |
Posts /wp-admin/edit.php | 2,100 ▲7 | 2.03 ▲0.03 | 36.70 ▼35.43 | 31.86 ▼30.80 |
Add New Post /wp-admin/post-new.php | 1,524 ▼14 | 23.42 ▼0.16 | 659.09 ▼161.72 | 65.45 ▼0.16 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.23 ▲0.11 | 108.78 ▼11.18 | 46.84 ▼7.02 |
Easy Country Spam Blocker /wp-admin/options-general.php?page=mi-ecsb | 3,572 | 1.97 | 31.72 | 49.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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 fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/easy-country-spam-blocker/public/partials/mi-ecsb-public-display.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'EasyCountrySpamBlocker_Helper' not found in wp-content/plugins/easy-country-spam-blocker/admin/partials/mi-ecsb-admin-display.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add descriptions for screenshots #3, #4, #5, #6 in easy-country-spam-blocker/assets to your readme.txt
easy-country-spam-blocker/mi-ecsb.php 85% from 13 tests
Analyzing the main PHP file in "Easy Country Spam Blocker" version 1.1.1
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("easy-country-spam-blocker.php" instead of "mi-ecsb.php")
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
Good job! No executable or dangerous file extensions detected1,512 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 216 | 897 | 979 |
CSS | 2 | 40 | 8 | 285 |
JavaScript | 2 | 60 | 91 | 248 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 5.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 1.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 19 | 35.19% |
▷ Public methods | 43 | 79.63% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 20.37% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected