Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.57ms] Passed 4 tests
An overview of server-side resources used by Real Protection & Safegaurd OTP
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 43.20 ▼2.95 |
Dashboard /wp-admin | 3.35 ▲0.04 | 47.32 ▼5.64 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 47.13 ▼8.92 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 86.17 ▼8.76 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.83 ▼0.26 |
OTP Settings /wp-admin/admin.php?page=safeguard-otp-settings | 3.24 | 34.37 |
Safeguard Login /wp-admin/admin.php?page=safeguard-login | 3.27 | 36.01 |
Alert SMS Record /wp-admin/admin.php?page=safeguard-woo-alert | 3.27 | 33.26 |
Server storage [IO: ▲0.84MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 26 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_safeguard_wooalert |
wp_safeguard_otp |
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
safeg_setting |
safeg_db_version |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Real Protection & Safegaurd OTP: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲36 | 14.31 ▼0.04 | 1.83 ▼0.53 | 46.14 ▲1.50 |
Dashboard /wp-admin | 2,222 ▲51 | 5.49 ▼0.11 | 89.75 ▲3.02 | 39.13 ▼6.29 |
Posts /wp-admin/edit.php | 2,133 ▲30 | 2.00 ▼0.00 | 35.09 ▼6.23 | 33.06 ▼12.02 |
Add New Post /wp-admin/post-new.php | 1,553 ▲18 | 23.11 ▲4.74 | 691.44 ▲66.36 | 52.15 ▼24.55 |
Media Library /wp-admin/upload.php | 1,433 ▲33 | 4.18 ▲0.01 | 97.65 ▲1.71 | 45.49 ▲0.57 |
OTP Settings /wp-admin/admin.php?page=safeguard-otp-settings | 1,073 | 2.13 | 23.76 | 30.93 |
Safeguard Login /wp-admin/admin.php?page=safeguard-login | 869 | 2.00 | 27.53 | 24.33 |
Alert SMS Record /wp-admin/admin.php?page=safeguard-woo-alert | 861 | 2.02 | 23.71 | 25.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% 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 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 fix the following items
- 11× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
require_once(SAFEG_PATHlib/safeguard-sms-api.php): failed to open stream: No such file or directory in wp-content/plugins/real-protection-otp/lib/safeguard-woo-alert.php on line 8
- > PHP Fatal error
require_once(): Failed opening required 'SAFEG_PATHlib/safeguard-sms-api.php' (include_path='.:/usr/share/php') in wp-content/plugins/real-protection-otp/lib/safeguard-resend-otp.php on line 5
- > PHP Warning
Use of undefined constant SAFEG_PATH - assumed 'SAFEG_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/real-protection-otp/lib/safeguard-resend-otp.php on line 5
- > PHP Warning
Use of undefined constant SAFEG_PATH - assumed 'SAFEG_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/real-protection-otp/lib/safeguard-woo-alert.php on line 8
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/real-protection-otp/include/safeguard-otp-report.php:9
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/real-protection-otp/include/safeguard-woo-report.php:9
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/real-protection-otp/include/safeguard-otp-report.php on line 8
- > PHP Warning
require_once(SAFEG_PATHlib/safeguard-sms-api.php): failed to open stream: No such file or directory in wp-content/plugins/real-protection-otp/lib/safeguard-resend-otp.php on line 5
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/real-protection-otp/include/safeguard-woo-report.php on line 8
- > PHP Fatal error
require_once(): Failed opening required 'SAFEG_PATHlib/safeguard-sms-api.php' (include_path='.:/usr/share/php') in wp-content/plugins/real-protection-otp/lib/safeguard-woo-alert.php on line 8
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 18 tag instead of maximum 10
real-protection-otp/safeguard-otp.php 92% from 13 tests
"Real Protection & Safegaurd OTP" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("real-protection-otp.php" instead of "safeguard-otp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,090 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 473 | 98 | 2,062 |
CSS | 1 | 3 | 0 | 28 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 41.40 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 101.00 |
Average method complexity | 4.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 5 | 9.43% |
▷ Public methods | 53 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 15 | 93.75% |
▷ Anonymous functions | 1 | 6.25% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
image/safeguard-logo.png | 18.94KB | 13.19KB | ▼ 30.37% |