Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼13.51MB] [CPU: ▼2,866,808.80ms] Passed 4 tests
A check of server-side resources used by FraudLabs Pro SMS Verification
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▼55.04 | 48.01 ▼11,467,209.99 |
Dashboard /wp-admin | 3.69 ▲0.30 | 55.80 ▼11.20 |
Posts /wp-admin/edit.php | 3.80 ▲0.40 | 53.78 ▼2.17 |
Add New Post /wp-admin/post-new.php | 6.27 ▲0.34 | 87.30 ▼11.83 |
Media Library /wp-admin/upload.php | 3.61 ▲0.34 | 43.01 ▲5.46 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 24 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
fraudlabs_pro_sms_verification_wc_email_verify |
fraudlabs_pro_sms_verification_edd_email_verify |
fraudlabs_pro_sms_verification_msg_otp_success |
fraudlabs_pro_sms_verification_sms_template |
fraudlabs_pro_sms_verification_sms_tel_cc |
fraudlabs_pro_sms_verification_api_key |
fraudlabs_pro_sms_verification_wp_default_registration_form |
fraudlabs_pro_sms_verification_wc_default_registration_form |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for FraudLabs Pro SMS Verification
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲31 | 14.31 ▼0.04 | 1.82 ▼0.04 | 44.76 ▼0.57 |
Dashboard /wp-admin | 2,208 ▲28 | 5.57 ▼0.08 | 97.97 ▲9.63 | 45.32 ▲2.16 |
Posts /wp-admin/edit.php | 2,110 ▲13 | 1.98 ▼0.03 | 36.34 ▼0.07 | 33.86 ▲0.92 |
Add New Post /wp-admin/post-new.php | 1,557 ▲31 | 23.22 ▲0.23 | 650.08 ▼45.71 | 69.77 ▲14.57 |
Media Library /wp-admin/upload.php | 1,413 ▲16 | 4.20 ▼0.05 | 109.17 ▼2.27 | 48.98 ▲2.61 |
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
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/fraudlabs-pro-sms-verification/vendor/fraudlabspro/fraudlabspro-php/tests/bootstrap.php
- > /wp-content/plugins/fraudlabs-pro-sms-verification/vendor/fraudlabspro/fraudlabspro-php/example.php
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/fraudlabs-pro-sms-verification/fraudlabspro-sms-verification.php:26
- > PHP Fatal error
Uncaught Error: Class 'WC_Integration' not found in wp-content/plugins/fraudlabs-pro-sms-verification/includes/class-wc-fraudlabspro-sms-verification.php:12
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/fraudlabs-pro-sms-verification/vendor/fraudlabspro/fraudlabspro-php/tests/SmsVerificationTest.php:7
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/fraudlabs-pro-sms-verification/vendor/fraudlabspro/fraudlabspro-php/vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/fraudlabs-pro-sms-verification/vendor/fraudlabspro/fraudlabspro-php/example.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/fraudlabs-pro-sms-verification/includes/flp-verify.php:13
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/fraudlabs-pro-sms-verification/vendor/fraudlabspro/fraudlabspro-php/tests/FraudValidationTest.php:7
- > PHP Warning
require_once(wp-content/plugins/fraudlabs-pro-sms-verification/vendor/fraudlabspro/fraudlabspro-php/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/fraudlabs-pro-sms-verification/vendor/fraudlabspro/fraudlabspro-php/example.php on line 6
- > 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)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: wordpress, contact form 7, sms verification, sms, woocommerce...
fraudlabs-pro-sms-verification/fraudlabspro-sms-verification.php 92% from 13 tests
The principal PHP file in "FraudLabs Pro SMS Verification" v. 1.9.5 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("fraudlabs-pro-sms-verification.php" instead of "fraudlabspro-sms-verification.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected4,479 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 544 | 567 | 4,078 |
Markdown | 1 | 67 | 0 | 189 |
JavaScript | 3 | 27 | 0 | 128 |
JSON | 2 | 0 | 0 | 74 |
XML | 1 | 0 | 0 | 7 |
CSS | 1 | 0 | 0 | 3 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 119)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 50.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 264.00 |
Average method complexity | 6.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 119.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 102 | |
▷ Static methods | 3 | 2.94% |
▷ Public methods | 76 | 74.51% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 26 | 25.49% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 17 | |
▷ Global constants | 2 | 11.76% |
▷ Class constants | 15 | 88.24% |
▷ Public constants | 15 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/flp-success-icon.png | 4.11KB | 2.06KB | ▼ 50.00% |
assets/images/tick.png | 4.00KB | 2.50KB | ▼ 37.59% |
assets/images/logo_200.png | 4.23KB | 2.45KB | ▼ 42.05% |
assets/images/icon.png | 1.47KB | 0.52KB | ▼ 64.65% |
assets/images/flp-get-otp.png | 6.13KB | 3.11KB | ▼ 49.24% |