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
Installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼2.40ms] Passed 4 tests
A check of server-side resources used by Miniorange OTP Verification with Firebase
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 38.76 ▼1.88 |
Dashboard /wp-admin | 3.45 ▲0.14 | 49.96 ▼5.21 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 48.65 ▼3.56 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 95.50 ▲1.05 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 36.18 ▲3.97 |
Licensing Plans /wp-admin/admin.php?page=mofrotplicense | 3.34 | 36.10 |
Setup Account /wp-admin/admin.php?page=mofrotpaccount | 3.33 | 39.03 |
Form Settings /wp-admin/admin.php?page=registrationform | 3.67 | 47.81 |
Gateway Settings /wp-admin/admin.php?page=mofrgatewayconfig | 3.33 | 35.27 |
Server storage [IO: ▲2.46MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 154 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Miniorange OTP Verification with Firebase
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,933 ▲171 | 14.34 ▲0.09 | 1.75 ▼0.09 | 38.03 ▼5.56 |
Dashboard /wp-admin | 2,323 ▲146 | 5.86 ▲0.33 | 96.07 ▼4.30 | 90.68 ▲42.66 |
Posts /wp-admin/edit.php | 2,243 ▲143 | 2.06 ▲0.06 | 43.62 ▼0.26 | 36.48 ▲1.89 |
Add New Post /wp-admin/post-new.php | 1,816 ▲280 | 22.53 ▼0.45 | 710.60 ▲86.30 | 42.45 ▼11.55 |
Media Library /wp-admin/upload.php | 1,543 ▲143 | 4.22 ▲0.02 | 113.32 ▲16.18 | 46.21 ▲4.88 |
Licensing Plans /wp-admin/admin.php?page=mofrotplicense | 1,499 | 2.14 | 30.26 | 101.91 |
Setup Account /wp-admin/admin.php?page=mofrotpaccount | 1,283 | 1.71 | 30.50 | 44.26 |
Form Settings /wp-admin/admin.php?page=registrationform | 2,841 | 1.77 | 34.82 | 119.38 |
Gateway Settings /wp-admin/admin.php?page=mofrgatewayconfig | 1,404 | 2.14 | 30.03 | 41.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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
Please fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'MoOTP\\Helper\\MoUtility' not found in wp-content/plugins/miniorange-firebase-sms-otp-verification/controllers/user-side-controller.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/miniorange-firebase-sms-otp-verification/views/user-side-controller.php:8
- > 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)
Please fix the following browser errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mofrgatewayconfig
- > Network (severe)
wp-content/plugins/miniorange-firebase-sms-otp-verification/includes/css/mo_fr_otp_boot.min.css?version=3.4.0&ver=3.4.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: These screenshots require images: #1 (Login and Signup Form), #2 (Enable OTP verification on Login Form), #3 (Enable OTP verification on Registration Form), #4 (miniOrange Login with Email and Password Form), #5 (miniOrange Registration Form), #6 (miniOrange Login with Phone Number and OTP Form)
- Tags: You are using too many tags: 19 tag instead of maximum 10
miniorange-firebase-sms-otp-verification/miniorange_firebase_validation_initializer.php 77% from 13 tests
"Miniorange OTP Verification with Firebase" version 3.4.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("miniorange-firebase-sms-otp-verification.php" instead of "miniorange_firebase_validation_initializer.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Requires at least: Required version must match the one declared in readme.txt ("3.5" instead of "2.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin14,385 lines of code in 106 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 4 | 3,121 | 4,807 | 7,819 |
PHP | 61 | 773 | 1,736 | 6,256 |
SVG | 26 | 2 | 0 | 295 |
JavaScript | 9 | 0 | 2 | 9 |
CSS | 6 | 0 | 0 | 6 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 9.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 2.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 3 | |
Traits | 1 | |
Classes | 25 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 25 | 100.00% |
▷ Final classes | 8 | 32.00% |
Methods | 161 | |
▷ Static methods | 57 | 35.40% |
▷ Public methods | 125 | 77.64% |
▷ Protected methods | 7 | 4.35% |
▷ Private methods | 29 | 18.01% |
Functions | 14 | |
▷ Named functions | 12 | 85.71% |
▷ Anonymous functions | 2 | 14.29% |
Constants | 169 | |
▷ Global constants | 32 | 18.93% |
▷ Class constants | 137 | 81.07% |
▷ Public constants | 137 | 100.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
22 PNG files occupy 0.43MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/mo_aws_sns.png | 6.45KB | 2.96KB | ▼ 54.17% |
includes/images/licensing.png | 0.65KB | 0.40KB | ▼ 38.31% |
includes/images/mo_support_icon.png | 2.74KB | 1.64KB | ▼ 40.33% |
includes/images/mo_firebase.png | 3.22KB | 1.94KB | ▼ 39.72% |
includes/images/miniorange_icon.png | 0.44KB | 0.35KB | ▼ 18.61% |