Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼2.48ms] Passed 4 tests
A check of server-side resources used by Yaurau-Ip-Blocker
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 43.70 ▲3.81 |
Dashboard /wp-admin | 3.39 ▲0.08 | 45.71 ▼1.51 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 50.06 ▲3.67 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 82.29 ▼14.11 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 39.85 ▲2.02 |
Yaurau IP Blocker /wp-admin/options-general.php?page=yaurau_ip_blocker | 3.28 | 32.55 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Just a few items left to fix
- You have illegally modified 1 file (0.53KB) outside of "wp-content/plugins/yaurau-ip-blocker/" and "wp-content/uploads/"
- (modified) .htaccess
Filesystem: 24 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_yaurau_ip_blocker |
wp_yaurau_ip_blocked |
wp_yaurau_ip_repository |
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Yaurau-Ip-Blocker
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 14.84 ▲0.43 | 1.92 ▲0.10 | 40.36 ▼4.49 |
Dashboard /wp-admin | 2,212 ▲24 | 4.84 ▼1.01 | 111.85 ▼4.57 | 44.86 ▼1.46 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.00 ▼0.01 | 41.68 ▲1.38 | 35.17 ▼4.20 |
Add New Post /wp-admin/post-new.php | 1,533 ▼9 | 23.25 ▲4.80 | 591.25 ▼71.55 | 54.22 ▼11.24 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.22 ▼0.03 | 96.99 ▼17.44 | 43.19 ▼5.11 |
Yaurau IP Blocker /wp-admin/options-general.php?page=yaurau_ip_blocker | 854 | 2.02 | 21.93 | 26.70 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=yaurau_ip_blocker
- > Warning in wp-content/plugins/yaurau-ip-blocker/public/add_IPv4.php+9
Use of undefined constant delete_plugins - assumed 'delete_plugins' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=yaurau_ip_blocker
- > Notice in wp-content/plugins/yaurau-ip-blocker/public/add_IPv4.php+13
Undefined index: firstblockIPv4
- > GET request to /wp-admin/options-general.php?page=yaurau_ip_blocker
- > Notice in wp-content/plugins/yaurau-ip-blocker/public/add_IPv4.php+14
Undefined index: secondblockIPv4
- > GET request to /wp-admin/options-general.php?page=yaurau_ip_blocker
- > Notice in wp-content/plugins/yaurau-ip-blocker/public/add_IPv4.php+25
Undefined index: submitIPv4
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/yaurau-ip-blocker/public/add_IPv6.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/yaurau-ip-blocker/public/add_IPv4.php:9
- > PHP Warning
Use of undefined constant Yaurau_IP_Blocker_PAGE - assumed 'Yaurau_IP_Blocker_PAGE' (this will throw an Error in a future version of PHP) in wp-content/plugins/yaurau-ip-blocker/public/add_IPv4.php on line 1
- > PHP Warning
Use of undefined constant Yaurau_IP_Blocker_PAGE - assumed 'Yaurau_IP_Blocker_PAGE' (this will throw an Error in a future version of PHP) in wp-content/plugins/yaurau-ip-blocker/public/add_IPv6.php on line 1
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: ip, permission, bots, ban, spam...
yaurau-ip-blocker/yaurau_ip_blocker.php 85% from 13 tests
The primary PHP file in "Yaurau-Ip-Blocker" version 1.2.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("yaurau-ip-blocker.php" instead of "yaurau_ip_blocker.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 175 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected735 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 86 | 296 | 681 |
CSS | 1 | 1 | 0 | 42 |
HTML | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 2.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 47 | 88.68% |
▷ Public methods | 53 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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
There were not PNG files found in your plugin