Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲1.97MB] [CPU: ▲7.11ms] Passed 4 tests
Analyzing server-side resources used by WPBruiser {no- Captcha anti-Spam}
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.07 ▲1.60 | 47.57 ▲1.93 |
Dashboard /wp-admin | 5.40 ▲2.09 | 65.51 ▲14.36 |
Posts /wp-admin/edit.php | 5.45 ▲2.09 | 70.54 ▲16.88 |
Add New Post /wp-admin/post-new.php | 8.00 ▲2.11 | 101.30 ▼4.75 |
Media Library /wp-admin/upload.php | 5.32 ▲2.09 | 58.09 ▲18.75 |
Membership /wp-admin/admin.php?page=wp-bruiser-membership | 5.24 | 51.30 |
Others /wp-admin/admin.php?page=wp-bruiser-others | 5.25 | 46.72 |
Security /wp-admin/admin.php?page=wp-bruiser-security | 5.28 | 51.80 |
Reports /wp-admin/admin.php?page=wp-bruiser-reports | 5.34 | 53.44 |
Extensions /wp-admin/admin.php?page=wp-bruiser-extensions | 5.24 | 51.01 |
Contact Forms /wp-admin/admin.php?page=wp-bruiser-contact-forms | 5.24 | 51.76 |
Notifications /wp-admin/admin.php?page=wp-bruiser-notifications | 5.24 | 49.39 |
WordPress /wp-admin/admin.php?page=wp-bruiser-wordpress | 5.25 | 57.25 |
Settings /wp-admin/admin.php?page=wp-bruiser-settings | 5.28 | 48.62 |
Server storage [IO: ▲9.18MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
These are issues you should consider
- The plugin illegally modified 1 file (0.00KB) outside of "wp-content/plugins/goodbye-captcha/" and "wp-content/uploads/"
- (new file) wp-content/wp-bruiser/1/.empty
Filesystem: 632 new files
Database: 1 new table, 24 new options
New tables |
---|
wp_gdbc_attempts |
New WordPress options |
---|
gdbcjetpackcontactform-settings |
gdbczmalr-settings |
gdbchtmlforms-settings |
widget_recent-comments |
gdbcwordpress-settings |
gdbcbruteforce-settings |
gdbcwpmembers-settings |
gdbcmailchimpforwp-settings |
db_upgraded |
gdbcwhitelistedips-settings |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for WPBruiser {no- Captcha anti-Spam}
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,854 ▲93 | 13.53 ▼0.65 | 8.46 ▲6.48 | 41.11 ▼5.41 |
Dashboard /wp-admin | 2,246 ▲69 | 5.64 ▲0.08 | 97.32 ▲10.50 | 39.40 ▼1.77 |
Posts /wp-admin/edit.php | 2,157 ▲54 | 2.01 ▲0.01 | 43.74 ▲4.81 | 36.49 ▲0.04 |
Add New Post /wp-admin/post-new.php | 1,572 ▲46 | 22.98 ▼0.45 | 668.62 ▲49.29 | 52.30 ▼7.14 |
Media Library /wp-admin/upload.php | 1,454 ▲60 | 4.25 ▼0.03 | 101.90 ▲3.49 | 42.18 ▼0.45 |
Membership /wp-admin/admin.php?page=wp-bruiser-membership | 1,197 | 4.83 | 52.08 | 81.90 |
Others /wp-admin/admin.php?page=wp-bruiser-others | 1,243 | 4.86 | 58.23 | 52.73 |
Security /wp-admin/admin.php?page=wp-bruiser-security | 1,594 | 4.96 | 52.27 | 73.45 |
Reports /wp-admin/admin.php?page=wp-bruiser-reports | 1,806 | 6.05 | 148.18 | 68.53 |
Extensions /wp-admin/admin.php?page=wp-bruiser-extensions | 1,318 | 4.59 | 43.10 | 69.10 |
Contact Forms /wp-admin/admin.php?page=wp-bruiser-contact-forms | 1,166 | 4.83 | 51.90 | 67.56 |
Notifications /wp-admin/admin.php?page=wp-bruiser-notifications | 1,184 | 4.84 | 50.08 | 52.87 |
WordPress /wp-admin/admin.php?page=wp-bruiser-wordpress | 1,391 | 4.93 | 61.03 | 59.00 |
Settings /wp-admin/admin.php?page=wp-bruiser-settings | 1,389 | 4.83 | 51.78 | 58.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-bruiser-wordpress
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
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
The following issues need your attention
- 9× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/goodbye-captcha/engine/modules/reports/partials/latest-attempts-table.php
- > /wp-content/plugins/goodbye-captcha/engine/admin/pages/templates/extensions-page.php
- > /wp-content/plugins/goodbye-captcha/engine/modules/email-notifications/templates/notification-test-mode.php
- > /wp-content/plugins/goodbye-captcha/engine/modules/reports/partials/latest-attempts-locations.php
- > /wp-content/plugins/goodbye-captcha/engine/modules/email-notifications/templates/notification-admin-logged-in.php
- > /wp-content/plugins/goodbye-captcha/engine/modules/reports/partials/modal-dialog.php
- > /wp-content/plugins/goodbye-captcha/engine/modules/reports/partials/blocked-content-table.php
- > /wp-content/plugins/goodbye-captcha/engine/modules/reports/partials/percentage-chart.php
- > /wp-content/plugins/goodbye-captcha/engine/modules/email-notifications/templates/notification-brute-force-attack.php
- 86× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'GdbcBasePublicModule' not found in wp-content/plugins/goodbye-captcha/engine/modules/black-listed-ips/GdbcBlackListedIpsPublicModule.php:21
- > PHP Fatal error
Uncaught Error: Class 'MchGdbcWpTask' not found in wp-content/plugins/goodbye-captcha/engine/tasks/GdbcLogsCleanerTask.php:19
- > PHP Fatal error
Uncaught Error: Class 'GdbcBaseAdminModule' not found in wp-content/plugins/goodbye-captcha/engine/modules/settings/GdbcSettingsAdminModule.php:20
- > PHP Fatal error
Uncaught Error: Class 'MchGdbcBaseModule' not found in wp-content/plugins/goodbye-captcha/includes/modules/MchGdbcBaseAdminModule.php:20
- > PHP Fatal error
Uncaught Error: Class 'GdbcBasePublicModule' not found in wp-content/plugins/goodbye-captcha/engine/modules/seamless-donations/GdbcSeamlessDonationsPublicModule.php:21
- > PHP Fatal error
Uncaught Error: Class 'GoodByeCaptcha' not found in wp-content/plugins/goodbye-captcha/engine/modules/black-listed-ips/partials/admin-settings.php:59
- > PHP Fatal error
Uncaught Error: Class 'MchGdbcBasePlugin' not found in wp-content/plugins/goodbye-captcha/includes/plugin/MchGdbcBasePublicPlugin.php:20
- > PHP Fatal error
Uncaught Error: Class 'MchGdbcCacheBaseStorage' not found in wp-content/plugins/goodbye-captcha/includes/vendor/MchCache/Storage/MchGdbcCacheMemcacheStorage.php:20
- > PHP Fatal error
Uncaught Error: Class 'GdbcBaseAdminModule' not found in wp-content/plugins/goodbye-captcha/engine/modules/email-notifications/GdbcEmailNotificationsAdminModule.php:20
- > PHP Fatal error
Uncaught Error: Class 'MchGdbcBasePublicPlugin' not found in wp-content/plugins/goodbye-captcha/engine/GoodByeCaptchaPublic.php:20
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=wp-bruiser-extensions
- > Network (severe)
http://ps.w.org/woocommerce/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=wp-bruiser-extensions
- > Network (severe)
http://ps.w.org/yikes-inc-easy-mailchimp-extender/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
goodbye-captcha/goodbye-captcha.php 92% from 13 tests
The principal PHP file in "WPBruiser {no- Captcha anti-Spam}" v. 3.1.43 is loaded by WordPress automatically on each request
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected33,552 lines of code in 353 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 333 | 6,593 | 7,648 | 20,455 |
CSS | 3 | 132 | 35 | 6,937 |
JavaScript | 13 | 1,082 | 684 | 5,761 |
SVG | 1 | 0 | 0 | 229 |
Markdown | 1 | 57 | 0 | 138 |
HTML | 2 | 12 | 0 | 32 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
It is recommended to fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 484)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 24.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 663.00 |
Average method complexity | 3.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 484.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 142 | |
▷ Abstract classes | 16 | 11.27% |
▷ Concrete classes | 126 | 88.73% |
▷ Final classes | 46 | 36.51% |
Methods | 1,219 | |
▷ Static methods | 396 | 32.49% |
▷ Public methods | 939 | 77.03% |
▷ Protected methods | 95 | 7.79% |
▷ Private methods | 185 | 15.18% |
Functions | 10 | |
▷ Named functions | 1 | 10.00% |
▷ Anonymous functions | 9 | 90.00% |
Constants | 281 | |
▷ Global constants | 35 | 12.46% |
▷ Class constants | 246 | 87.54% |
▷ Public constants | 246 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
13 PNG files occupy 0.18MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) assets/admin/images/fscf-logo-128x128.png | 2.14KB | 0.00KB | ▼ 100.00% |
assets/admin/images/country-blocking-128x128.png | 21.35KB | 6.32KB | ▼ 70.41% |
assets/admin/images/memberpress-logo-128x128.png | 13.92KB | 4.88KB | ▼ 64.97% |
assets/admin/images/userpro-logo-128x128.png | 8.04KB | 3.59KB | ▼ 55.33% |
assets/admin/images/quform-logo-128x128.png | 11.96KB | 5.12KB | ▼ 57.16% |