Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.31MB] [CPU: ▼35.35ms] Passed 4 tests
Server-side resources used by Sabres Security Website Protection
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.31 ▲0.84 | 20.67 ▼17.54 |
Dashboard /wp-admin | 4.32 ▲1.02 | 40.00 ▼13.31 |
Posts /wp-admin/edit.php | 4.32 ▲0.96 | 25.16 ▼24.85 |
Add New Post /wp-admin/post-new.php | 4.32 ▼1.57 | 24.19 ▼85.69 |
Media Library /wp-admin/upload.php | 4.32 ▲1.09 | 31.55 ▼5.35 |
Sabres /wp-admin/options-general.php?page=sabres | 4.32 | 26.32 |
Server storage [IO: ▲7.32MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 263 new files
Database: 6 new tables, 7 new options
New tables |
---|
wp_sbs_scan_items |
wp_sbs_log |
wp_sbs_firewall_custom |
wp_sbs_firewall_cookies |
wp_sbs_scans |
wp_sbs_firewall_countries |
New WordPress options |
---|
theysaidso_admin_options |
sabres-settings |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Sabres Security Website Protection
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲69 | 14.14 ▼0.51 | 1.92 ▲0.09 | 34.76 ▼12.50 |
Dashboard /wp-admin | 2,202 ▲25 | 5.54 ▼0.11 | 84.70 ▼2.97 | 72.78 ▲27.94 |
Posts /wp-admin/edit.php | 2,119 ▲16 | 2.01 ▼0.00 | 35.41 ▼4.11 | 40.43 ▲5.59 |
Add New Post /wp-admin/post-new.php | 1,695 ▲155 | 21.81 ▼1.38 | 692.62 ▲23.73 | 53.16 ▼8.80 |
Media Library /wp-admin/upload.php | 1,413 ▲13 | 4.21 ▲0.06 | 95.44 ▼20.18 | 69.19 ▲22.23 |
Sabres /wp-admin/options-general.php?page=sabres | 852 | 2.06 | 28.66 | 29.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/sabres-security-website-protection/classes/helpers/ip2location/IP2Location.php+351
Array and string offset access syntax with curly braces is deprecated
- Zombie tables detected upon uninstall: 6 tables
- wp_sbs_scan_items
- wp_sbs_firewall_custom
- wp_sbs_firewall_countries
- wp_sbs_scans
- wp_sbs_log
- wp_sbs_firewall_cookies
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- sabres-settings
- widget_recent-posts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=sabres
- > Deprecated in wp-content/plugins/sabres-security-website-protection/classes/helpers/ip2location/IP2Location.php+354
Array and string offset access syntax with curly braces is deprecated
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 5× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/sabres-security-website-protection/vendor/gregwar/captcha/demo/index.php
- > /wp-content/plugins/sabres-security-website-protection/views/terms.php
- > /wp-content/plugins/sabres-security-website-protection/vendor/gregwar/captcha/demo/output.php
- > /wp-content/plugins/sabres-security-website-protection/vendor/gregwar/captcha/demo/ocr.php
- > /wp-content/plugins/sabres-security-website-protection/vendor/gregwar/captcha/demo/fingerprint.php
- 1365× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/sabres-security-website-protection/vendor/gregwar/captcha/CaptchaBuilder.php on line 333
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/sabres-security-website-protection/vendor/gregwar/captcha/CaptchaBuilder.php on line 333
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/sabres-security-website-protection/vendor/gregwar/captcha/CaptchaBuilder.php on line 333
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/sabres-security-website-protection/vendor/gregwar/captcha/CaptchaBuilder.php on line 333
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/sabres-security-website-protection/vendor/gregwar/captcha/CaptchaBuilder.php on line 333
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/sabres-security-website-protection/vendor/gregwar/captcha/CaptchaBuilder.php on line 333
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/sabres-security-website-protection/vendor/gregwar/captcha/CaptchaBuilder.php on line 333
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/sabres-security-website-protection/vendor/gregwar/captcha/CaptchaBuilder.php on line 333
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/sabres-security-website-protection/vendor/gregwar/captcha/CaptchaBuilder.php on line 333
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/sabres-security-website-protection/vendor/gregwar/captcha/CaptchaBuilder.php on line 333
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
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
Attributes that need to be fixed:
- Tags: There are too many tags (12 tag instead of maximum 10)
sabres-security-website-protection/sabres-security-website-protection.php 85% from 13 tests
The main PHP script in "Sabres Security Website Protection" version 0.4.44 is automatically included on every request by WordPress
It is important to fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 300 characters long)
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
These items require your attention
- For security reasons, never distribute binary or executable files with your plugin
- .bin - Binary Executable in Windows, macOS, Linux
- ☣ wp-content/plugins/sabres-security-website-protection/classes/helpers/ip2location/databases/IP-COUNTRY.BIN
- .bin - Binary Executable in Windows, macOS, Linux
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 157 | 3,913 | 6,554 | 15,430 |
SVG | 4 | 0 | 0 | 4,216 |
CSS | 3 | 327 | 22 | 2,866 |
JavaScript | 15 | 393 | 154 | 2,011 |
Markdown | 2 | 97 | 0 | 246 |
JSON | 3 | 0 | 0 | 99 |
YAML | 1 | 2 | 0 | 11 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 12.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 135.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 131 | |
▷ Abstract classes | 18 | 13.74% |
▷ Concrete classes | 113 | 86.26% |
▷ Final classes | 7 | 6.19% |
Methods | 983 | |
▷ Static methods | 111 | 11.29% |
▷ Public methods | 760 | 77.31% |
▷ Protected methods | 42 | 4.27% |
▷ Private methods | 181 | 18.41% |
Functions | 30 | |
▷ Named functions | 1 | 3.33% |
▷ Anonymous functions | 29 | 96.67% |
Constants | 141 | |
▷ Global constants | 12 | 8.51% |
▷ Class constants | 129 | 91.49% |
▷ Public constants | 129 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
42 PNG files occupy 0.40MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icons/traffic.png | 1.51KB | 0.83KB | ▼ 44.90% |
images/arrow-right.png | 0.64KB | 0.85KB | 0.00% |
images/panel_sprites.png | 4.97KB | 2.93KB | ▼ 41.17% |
images/arrow-left.png | 0.67KB | 0.85KB | 0.00% |
images/tour-arrows/page5-features.png | 2.12KB | 2.15KB | 0.00% |