Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.54MB] [CPU: ▼5.06ms] Passed 4 tests
An overview of server-side resources used by Stop War! Stop Putin!
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.03 ▲0.56 | 41.67 ▼10.30 |
Dashboard /wp-admin | 3.88 ▲0.58 | 46.27 ▼0.71 |
Posts /wp-admin/edit.php | 3.93 ▲0.57 | 53.79 ▲7.30 |
Add New Post /wp-admin/post-new.php | 6.42 ▲0.53 | 87.25 ▼13.06 |
Media Library /wp-admin/upload.php | 3.74 ▲0.51 | 37.71 ▲3.83 |
Block /wp-admin/admin.php?page=stop_war_stop_putin | 3.72 | 36.74 |
Statistics /wp-admin/admin.php?page=stop_war_stop_putin-statistics | 3.71 | 38.79 |
Settings /wp-admin/admin.php?page=stop_war_stop_putin-settings | 4.23 | 35.72 |
Server storage [IO: ▲2.76MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 69 new files
Database: 1 new table, 43 new options
New tables |
---|
wp_ip2location_country_blocker_log |
New WordPress options |
---|
stopwarstopputin_blocker_api_key |
stopwarstopputin_blocker_access_email_notification |
stopwarstopputin_blocker_frontend_block_mode |
stopwarstopputin_blocker_backend_banlist |
stopwarstopputin_blocker_px_api_key |
stopwarstopputin_blocker_token |
stopwarstopputin_blocker_backend_ip_whitelist |
stopwarstopputin_blocker_frontend_whitelist_logged_user |
stopwarstopputin_blocker_backend_redirect_url |
stopwarstopputin_blocker_log_enabled |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Stop War! Stop Putin!
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲94 | 14.35 ▲0.09 | 1.57 ▼0.19 | 43.94 ▼8.97 |
Dashboard /wp-admin | 2,263 ▲95 | 5.68 ▲0.11 | 88.03 ▼4.75 | 39.75 ▼0.77 |
Posts /wp-admin/edit.php | 2,165 ▲65 | 2.06 ▲0.07 | 36.04 ▼5.01 | 30.56 ▼7.81 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 23.08 ▲0.13 | 586.61 ▼23.55 | 62.79 ▲7.19 |
Media Library /wp-admin/upload.php | 1,468 ▲71 | 4.25 ▲0.01 | 108.42 ▲10.66 | 46.90 ▲4.90 |
Block /wp-admin/admin.php?page=stop_war_stop_putin | 1,162 | 2.03 | 34.85 | 33.23 |
Statistics /wp-admin/admin.php?page=stop_war_stop_putin-statistics | 890 | 3.12 | 92.71 | 28.66 |
Settings /wp-admin/admin.php?page=stop_war_stop_putin-settings | 909 | 2.08 | 26.01 | 23.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie tables detected upon uninstall: 1 table
- wp_ip2location_country_blocker_log
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- stopwarstopputin_blocker_download_ipv4_only
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 25% from 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 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 take a closer look at the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/stop-war-stop-putin/vendor/ip2location/ip2proxy-php/tests/bootstrap.php
- > /wp-content/plugins/stop-war-stop-putin/vendor/ip2location/ip2location-php/tests/bootstrap.php
- 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/stop-war-stop-putin/vendor/ip2location/ip2location-php/tests/DatabaseTest.php:10
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/stop-war-stop-putin/vendor/ip2location/ip2location-php/tests/IpToolsTest.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/stop-war-stop-putin/stopwarstopputin.php:22
- > PHP Warning
require(vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/stop-war-stop-putin/vendor/ip2location/ip2proxy-php/examples/example.php on line 3
- > PHP Fatal error
require(): Failed opening required 'vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/stop-war-stop-putin/vendor/ip2location/ip2proxy-php/examples/example.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/stop-war-stop-putin/vendor/ip2location/ip2proxy-php/tests/WebServiceTest.php:9
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/stop-war-stop-putin/vendor/ip2location/ip2location-php/tests/WebServiceTest.php:10
- > PHP Fatal error
require(): Failed opening required 'vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/stop-war-stop-putin/vendor/ip2location/ip2location-php/examples/example.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/stop-war-stop-putin/vendor/ip2location/ip2proxy-php/tests/DatabaseTest.php:9
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/stop-war-stop-putin/vendor/ip2location/ip2location-php/tests/CountryTest.php:9
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=stop_war_stop_putin-statistics
- > Console-api (severe) in wp-content/plugins/stop-war-stop-putin/assets/js/chart-js.min.js+12:86747
Invalid scale configuration for scale: yAxes
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
stop-war-stop-putin/stopwarstopputin.php 85% from 13 tests
The entry point to "Stop War! Stop Putin!" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 173 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("stop-war-stop-putin.php" instead of "stopwarstopputin.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
It is important to fix the following items
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .bin - Binary Executable in Windows, macOS, Linux
- ☣ wp-content/plugins/stop-war-stop-putin/assets/IP2LOCATION-LITE-DB1.BIN
- .bin - Binary Executable in Windows, macOS, Linux
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 1,410 | 2,049 | 5,415 |
JavaScript | 8 | 68 | 12 | 338 |
Markdown | 4 | 121 | 0 | 240 |
JSON | 3 | 0 | 0 | 190 |
CSS | 4 | 15 | 8 | 66 |
XML | 2 | 0 | 0 | 14 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 50.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 402.00 |
Average method complexity | 4.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 74.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 216 | |
▷ Static methods | 26 | 12.04% |
▷ Public methods | 117 | 54.17% |
▷ Protected methods | 2 | 0.93% |
▷ Private methods | 97 | 44.91% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 104 | |
▷ Global constants | 3 | 2.88% |
▷ Class constants | 101 | 97.12% |
▷ Public constants | 77 | 76.24% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/step-1-selected.png | 3.01KB | 1.35KB | ▼ 55.06% |
assets/img/step-1.png | 4.04KB | 1.52KB | ▼ 62.47% |
assets/img/step-end.png | 31.47KB | 10.52KB | ▼ 66.57% |
assets/css/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
assets/img/step-3.png | 4.88KB | 1.81KB | ▼ 62.92% |