Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼0.69ms] Passed 4 tests
An overview of server-side resources used by Notifier and IP Blocker
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 40.82 ▲4.81 |
Dashboard /wp-admin | 3.43 ▲0.12 | 44.96 ▲0.10 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 47.18 ▲0.80 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 80.63 ▼7.15 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 35.68 ▲3.47 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 30 new files
Database: 2 new tables, 37 new options
New tables |
---|
wp_naipb_blocked_list |
wp_naipb_spam_list |
New WordPress options |
---|
notifier_and_ip_blocker_blocked_ip_page_content |
notifier_and_ip_blocker_15 |
widget_recent-comments |
widget_theysaidso_widget |
notifier_and_ip_blocker_7 |
notifier_and_ip_blocker |
notifier_and_ip_blocker_3 |
notifier_and_ip_blocker_enable_grecaptca |
notifier_and_ip_blocker_2 |
notifier_and_ip_blocker_blocked_ip_page_noindex |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Notifier and IP Blocker
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲43 | 14.45 ▲0.10 | 1.79 ▲0.16 | 43.07 ▼0.64 |
Dashboard /wp-admin | 2,210 ▲30 | 5.65 ▲0.01 | 83.37 ▼5.66 | 59.85 ▲17.96 |
Posts /wp-admin/edit.php | 2,115 ▲18 | 1.98 ▼0.04 | 35.40 ▲1.53 | 31.56 ▼6.76 |
Add New Post /wp-admin/post-new.php | 1,692 ▲166 | 22.06 ▼0.97 | 766.44 ▲46.50 | 50.05 ▼8.62 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.12 ▼0.13 | 96.08 ▼8.69 | 72.24 ▲25.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 36 options in the database
- notifier_and_ip_blocker_4
- notifier_and_ip_blocker_1
- notifier_and_ip_blocker_blocked_ip_page_noindex
- notifier_and_ip_blocker_enabled_cf7
- notifier_and_ip_blocker_blocked_ip_login_page_exclude
- widget_theysaidso_widget
- notifier_and_ip_blocker_11
- notifier_and_ip_blocker_db_truncate
- notifier_and_ip_blocker_subject
- notifier_and_ip_blocker_12
- ...
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
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% 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:
- Tags: Too many tags (24 tag instead of maximum 10); only the first 5 tags are used in your directory listing
notifier-and-ip-blocker/notifier-and-ip-blocker.php Passed 13 tests
The main PHP script in "Notifier and IP Blocker" version 1.0 is automatically included on every request by WordPress
123 characters long description:
Notify a user about when he sent comment or form via Contact Form 7 and automatically blocked spammer IP by notifier users.
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 detected904 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 187 | 407 | 868 |
JavaScript | 2 | 2 | 2 | 36 |
CSS | 1 | 0 | 1 | 0 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 28.25 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 3.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 30 | 76.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 23.08% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon.png | 0.72KB | 0.19KB | ▼ 73.71% |