Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▲0.06ms] Passed 4 tests
Analyzing server-side resources used by 2-Step Verification by BestWebSoft - WordPress Anti-spam and Anti Hacker Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 43.26 ▲4.51 |
Dashboard /wp-admin | 3.40 ▲0.09 | 46.82 ▼3.92 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 47.55 ▲1.90 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 95.18 ▼1.71 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 36.81 ▲3.96 |
Server storage [IO: ▲5.26MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 131 new files
Database: no new tables, 9 new options
New WordPress options |
---|
gglstpvrfctn_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
gglstpvrfctn_key |
theysaidso_admin_options |
widget_recent-comments |
bstwbsftwppdtplgns_options |
can_compress_scripts |
Browser metrics Passed 4 tests
2-Step Verification by BestWebSoft - WordPress Anti-spam and Anti Hacker Plugin: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,898 ▲137 | 13.98 ▼0.64 | 1.71 ▲0.05 | 44.83 ▲4.07 |
Dashboard /wp-admin | 2,241 ▲61 | 5.75 ▲0.07 | 81.60 ▼7.07 | 39.08 ▼5.47 |
Posts /wp-admin/edit.php | 2,146 ▲46 | 2.06 ▲0.03 | 38.38 ▲2.43 | 40.76 ▲3.52 |
Add New Post /wp-admin/post-new.php | 1,575 ▲49 | 18.20 ▼4.64 | 615.52 ▼54.14 | 70.24 ▲17.36 |
Media Library /wp-admin/upload.php | 1,449 ▲49 | 4.28 ▼0.07 | 99.19 ▲6.61 | 43.35 ▼1.78 |
BWS Panel /wp-admin/google-2-step-verification.php?page=gglstpvrfctn-bws-panel | 26 | 0.42 | 0.11 | 16.26 |
Settings /wp-admin/google-2-step-verification.php | 26 | 0.42 | 0.08 | 5.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/bws-google-2-step-verification/bws_menu/product_list.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bws-google-2-step-verification/bws_menu/class-bws-settings.php:1452
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/bws-google-2-step-verification/bws-google-2-step-verification.php:2053
- > PHP Fatal error
Uncaught Error: Class 'Bws_Settings_Tabs' not found in wp-content/plugins/bws-google-2-step-verification/includes/class-gglstpvrfctn-settings.php:6
- > 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/google-2-step-verification.php?page=gglstpvrfctn-bws-panel
- > Network (severe)
wp-admin/google-2-step-verification.php?page=gglstpvrfctn-bws-panel - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/google-2-step-verification.php
- > Network (severe)
wp-admin/google-2-step-verification.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (2-Step Verification on the Login page.), #2 (2-Step Verification on the profile page.), #3 (2-Step Verification settings page.), #4 (2-Step Verification settings which allow to customize email messages.), #5 (2-Step Verification on the Lost password page.), #6 (2-Step Verification on the Register page.)
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
bws-google-2-step-verification/bws-google-2-step-verification.php Passed 13 tests
This is the main PHP file of "2-Step Verification by BestWebSoft - WordPress Anti-spam and Anti Hacker Plugin" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
108 characters long description:
Stronger security solution which protects your WordPress website from hacks and unauthorized login attempts.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected21,746 lines of code in 49 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 11 | 3,928 | 5,911 | 8,569 |
PHP | 10 | 707 | 993 | 6,169 |
CSS | 11 | 209 | 280 | 5,790 |
JavaScript | 13 | 97 | 172 | 1,068 |
SVG | 4 | 0 | 0 | 150 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 64.25 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 210.00 |
Average method complexity | 8.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 79.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 28 | 77.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 22.22% |
Functions | 110 | |
▷ Named functions | 110 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 2 | 40.00% |
▷ Class constants | 3 | 60.00% |
▷ Public constants | 3 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
65 PNG files occupy 3.29MB with 1.68MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
bws_menu/css/jquery-ui-styles/1.10.4/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.26KB | 0.11KB | ▼ 56.06% |
bws_menu/css/jquery-ui-styles/1.9.2/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
bws_menu/css/jquery-ui-styles/1.9.2/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
bws_menu/css/jquery-ui-styles/1.11.4/images/ui-bg_glass_75_dadada_1x400.png | 0.26KB | 0.16KB | ▼ 38.93% |
bws_menu/css/jquery-ui-styles/1.11.4/images/ui-bg_glass_65_ffffff_1x400.png | 0.20KB | 0.09KB | ▼ 57.49% |