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.41MB] [CPU: ▼1.21ms] Passed 4 tests
This is a short check of server-side resources used by OTP Login Woocommerce & Gravity Forms
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.36 | 47.85 ▲11.83 |
Dashboard /wp-admin | 3.77 ▲0.47 | 46.18 ▼1.19 |
Posts /wp-admin/edit.php | 3.83 ▲0.47 | 47.89 ▼0.27 |
Add New Post /wp-admin/post-new.php | 6.29 ▲0.41 | 89.39 ▼14.03 |
Media Library /wp-admin/upload.php | 3.64 ▲0.41 | 44.13 ▲10.67 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 13 new options
New WordPress options |
---|
xoo_ml_otp_users |
db_upgraded |
xoo_mobile-login-woocommerce_theme_templates_data |
xoo_ml_el_refresh_fields |
xoo-ml-services-options |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
xoo-ml-phone-options |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
A check of browser resources used by OTP Login Woocommerce & Gravity Forms
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,950 ▲189 | 14.30 ▼0.06 | 22.50 ▲20.86 | 40.87 ▲1.13 |
Dashboard /wp-admin | 2,211 ▲34 | 5.61 ▼0.04 | 81.63 ▼6.59 | 35.62 ▼7.08 |
Posts /wp-admin/edit.php | 2,119 ▲19 | 2.03 ▲0.01 | 48.91 ▲7.65 | 39.08 ▼0.31 |
Add New Post /wp-admin/post-new.php | 1,549 ▲23 | 23.11 ▼0.61 | 641.98 ▼47.88 | 57.29 ▲0.99 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.22 ▲0.05 | 102.79 ▼1.61 | 44.95 ▲0.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options were found after uninstall: 13 options
- widget_recent-comments
- xoo-ml-services-options
- db_upgraded
- xoo_ml_el_refresh_fields
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- xoo-ml-phone-options
- xoo_mobile-login-woocommerce_theme_templates_data
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Almost there! Just fix the following items
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/mobile-login-woocommerce/admin/templates/sidebar.php:74
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/mobile-login-woocommerce/admin/templates/xoo-ml-admin-display.php:27
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/mobile-login-woocommerce/admin/templates/xoo-ml-admin-display.php on line 7
- > PHP Notice
Undefined variable: tabs in wp-content/plugins/mobile-login-woocommerce/admin/templates/xoo-ml-admin-display.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'Xoo_Helper' not found in wp-content/plugins/mobile-login-woocommerce/includes/class-xoo-ml-helper.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/mobile-login-woocommerce/admin/templates/xoo-ml-premium-info.php:42
- > PHP Fatal error
Uncaught Error: Class 'GF_Field_Phone' not found in wp-content/plugins/mobile-login-woocommerce/includes/class-xoo-ml-gravity-form.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add descriptions for these screenshots #2, #4, #5 in mobile-login-woocommerce/assets to your readme.txt
mobile-login-woocommerce/xoo-ml-main.php 92% from 13 tests
"OTP Login Woocommerce & Gravity Forms" version 2.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("mobile-login-woocommerce.php" instead of "xoo-ml-main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected3,975 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 955 | 285 | 2,758 |
JavaScript | 5 | 286 | 65 | 718 |
CSS | 3 | 93 | 5 | 499 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 24.21 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 99.00 |
Average method complexity | 3.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 124 | |
▷ Static methods | 38 | 30.65% |
▷ Public methods | 119 | 95.97% |
▷ Protected methods | 1 | 0.81% |
▷ Private methods | 4 | 3.23% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
There are no PNG files in this plugin