Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/bravo-security/includes/functions.php+103
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
Server metrics [RAM: ▼1.63MB] [CPU: ▼54.45ms] Passed 4 tests
This is a short check of server-side resources used by Bravo WP security Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.36 ▼1.11 | 7.15 ▼32.07 |
Dashboard /wp-admin | 2.38 ▼0.93 | 10.04 ▼39.06 |
Posts /wp-admin/edit.php | 2.38 ▼0.98 | 8.75 ▼46.15 |
Add New Post /wp-admin/post-new.php | 2.38 ▼3.51 | 9.16 ▼100.53 |
Media Library /wp-admin/upload.php | 2.38 ▼0.85 | 10.04 ▼30.03 |
Dashboard /wp-admin/admin.php?page=bravo-security | 2.38 | 9.69 |
WPConfig Tweak /wp-admin/admin.php?page=bravo-security-wconfig | 2.38 | 9.46 |
Database Backups /wp-admin/admin.php?page=bravo-security-backups | 2.38 | 9.83 |
Firewall & Rules /wp-admin/admin.php?page=bravo-security-firewall | 2.38 | 9.86 |
WPAdmin Security /wp-admin/admin.php?page=bravo-security-wadmin | 2.38 | 8.88 |
Housekeeping /wp-admin/admin.php?page=bravo-security-housekeeping | 2.38 | 9.46 |
Settings /wp-admin/admin.php?page=bravo-security-settings | 2.38 | 10.48 |
Mail Watching /wp-admin/admin.php?page=bravo-security-mail | 2.38 | 11.78 |
Cronjobs (Schedules) /wp-admin/admin.php?page=bravo-security-cronjobs | 2.38 | 10.28 |
Log Watching /wp-admin/admin.php?page=bravo-security-logwatch | 2.38 | 9.77 |
Server storage [IO: ▲4.37MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 283 new files
Database: 4 new tables, 134 new options
New tables |
---|
wp__tebravo_traffic |
wp__tebravo_scan_ps |
wp__tebravo_attemps |
wp__tebravo_firewall_actions |
New WordPress options |
---|
_tebravo_disable_wp_errors_debug |
_tebravo_googshaver |
_tebravo_hot_linking_img |
_tebravo_fchange_infected_action |
_tebravo_googshaver_api |
_tebravo_wp_prefix_enabled |
_tebravo_firewall_404_whiteext |
_tebravo_hidewpversion |
_tebravo_admins |
_tebravo_scan_fchange_new |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Bravo WP security Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,958 ▲172 | 14.31 ▲0.09 | 1.82 ▲0.02 | 41.44 ▼0.93 |
Dashboard /wp-admin | 2,323 ▲143 | 5.59 ▼0.06 | 99.62 ▲9.17 | 92.29 ▲45.12 |
Posts /wp-admin/edit.php | 2,243 ▲146 | 2.02 ▲0.00 | 40.12 ▲3.57 | 40.72 ▲5.26 |
Add New Post /wp-admin/post-new.php | 1,661 ▲133 | 20.45 ▼2.74 | 675.03 ▲27.53 | 41.88 ▼7.59 |
Media Library /wp-admin/upload.php | 1,543 ▲149 | 4.17 ▼0.09 | 100.11 ▼5.48 | 71.75 ▲23.30 |
Dashboard /wp-admin/admin.php?page=bravo-security | 1,472 | 2.09 | 28.73 | 55.65 |
WPConfig Tweak /wp-admin/admin.php?page=bravo-security-wconfig | 1,232 | 1.69 | 26.75 | 41.94 |
Database Backups /wp-admin/admin.php?page=bravo-security-backups | 1,026 | 2.06 | 24.61 | 32.16 |
Firewall & Rules /wp-admin/admin.php?page=bravo-security-firewall | 1,249 | 2.06 | 24.70 | 37.76 |
WPAdmin Security /wp-admin/admin.php?page=bravo-security-wadmin | 1,224 | 1.69 | 23.86 | 55.17 |
Housekeeping /wp-admin/admin.php?page=bravo-security-housekeeping | 1,102 | 1.69 | 27.25 | 36.91 |
Settings /wp-admin/admin.php?page=bravo-security-settings | 1,517 | 1.74 | 27.07 | 51.25 |
Mail Watching /wp-admin/admin.php?page=bravo-security-mail | 1,004 | 2.06 | 23.45 | 32.64 |
Cronjobs (Schedules) /wp-admin/admin.php?page=bravo-security-cronjobs | 1,271 | 2.06 | 23.91 | 32.11 |
Log Watching /wp-admin/admin.php?page=bravo-security-logwatch | 982 | 2.05 | 23.43 | 33.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/bravo-security/includes/functions.php+103
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=bravo-security-logwatch
- > Deprecated in wp-content/plugins/bravo-security/includes/functions.php+103
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: wordpress malware removal, best wordpress security, wordpress firewall, wp security, wp security plugin...
bravo-security/bravo-security.php 92% from 13 tests
The main PHP script in "Bravo WP security Plugin" version 1.1 is automatically included on every request by WordPress
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 198 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected30,889 lines of code in 85 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 61 | 3,588 | 3,348 | 24,225 |
CSS | 9 | 328 | 24 | 3,740 |
PO File | 1 | 835 | 1,026 | 1,789 |
JavaScript | 8 | 156 | 196 | 1,050 |
HTML | 5 | 4 | 0 | 84 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 66.34 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 349.00 |
Average method complexity | 5.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 47 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 47 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 653 | |
▷ Static methods | 100 | 15.31% |
▷ Public methods | 506 | 77.49% |
▷ Protected methods | 127 | 19.45% |
▷ Private methods | 20 | 3.06% |
Functions | 117 | |
▷ Named functions | 106 | 90.60% |
▷ Anonymous functions | 11 | 9.40% |
Constants | 188 | |
▷ Global constants | 93 | 49.47% |
▷ Class constants | 95 | 50.53% |
▷ Public constants | 95 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
139 PNG files occupy 0.31MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/auth_example.png | 22.57KB | 8.90KB | ▼ 60.58% |
assets/img/icons/authors.png | 0.48KB | 0.40KB | ▼ 16.46% |
assets/img/wizard.png | 0.68KB | 0.89KB | 0.00% |
assets/img/default_icon.png | 0.98KB | 0.97KB | 0.20% |
assets/img/icons/png.png | 0.66KB | 0.72KB | 0.00% |