Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.07MB] [CPU: ▼17.31ms] Passed 4 tests
Analyzing server-side resources used by Verotel/CardBilling/Bill/GayCharge/BitsafePay FlexPay for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 42.63 ▼1.59 |
Dashboard /wp-admin | 3.30 ▼0.01 | 37.89 ▼12.76 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 40.30 ▼14.45 |
Add New Post /wp-admin/post-new.php | 5.54 ▼0.35 | 77.90 ▼35.87 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 32.53 ▼6.14 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 49 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Verotel/CardBilling/Bill/GayCharge/BitsafePay FlexPay for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.78 ▲0.41 | 2.01 ▲0.33 | 43.20 ▲2.71 |
Dashboard /wp-admin | 2,209 ▲21 | 4.85 ▼1.05 | 96.65 ▼13.85 | 39.63 ▼6.19 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.02 ▲0.03 | 36.01 ▼7.97 | 32.92 ▼2.94 |
Add New Post /wp-admin/post-new.php | 1,514 ▼19 | 17.60 ▼5.48 | 695.36 ▲58.29 | 62.81 ▲9.89 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.17 ▲0.04 | 95.10 ▼9.80 | 43.65 ▼4.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
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 take a closer look at the following
- 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/woo-verotelcardbilling-flexpay/includes/vendor/verotel/flexpay-php-client/tests/FlexPayTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/woo-verotelcardbilling-flexpay/includes/classes/WC_Gateway_FlexPay.php:4
- > PHP Fatal error
Uncaught Verotel\\FlexPay\\Exception: Invalid merchant ID in wp-content/plugins/woo-verotelcardbilling-flexpay/includes/vendor/verotel/flexpay-php-client/src/Verotel/FlexPay/Brand.php:19
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/woo-verotelcardbilling-flexpay/includes/vendor/verotel/flexpay-php-client/tests/VerotelFlexPayClientTest.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function FlexPayWoo\\add_action() in wp-content/plugins/woo-verotelcardbilling-flexpay/includes/classes/Initializer.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/woo-verotelcardbilling-flexpay/includes/vendor/verotel/flexpay-php-client/tests/VerotelFlexPayBrandTest.php:7
- > PHP Fatal error
Uncaught Verotel\\FlexPay\\Exception: Invalid merchant ID in wp-content/plugins/woo-verotelcardbilling-flexpay/includes/vendor/verotel/flexpay-php-client/src/Verotel/FlexPay/Brand.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/woo-verotelcardbilling-flexpay/includes/settings.php:6
- > PHP Fatal error
Uncaught Verotel\\FlexPay\\Exception: Invalid merchant ID in wp-content/plugins/woo-verotelcardbilling-flexpay/includes/vendor/verotel/flexpay-php-client/src/Verotel/FlexPay/Brand.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% 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 require attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== woo-verotelcardbilling-flexpay ===
)
woo-verotelcardbilling-flexpay/index.php 85% from 13 tests
"Verotel/CardBilling/Bill/GayCharge/BitsafePay FlexPay for WooCommerce" version 1.9'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: Name the main plugin file the same as the plugin slug ("woo-verotelcardbilling-flexpay.php" instead of "index.php")
- Requires at least: The required version number must match the one declared in readme.txt ("5.9.1" instead of "6.2.1")
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
Success! There were no dangerous files found in this plugin2,432 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 38 | 527 | 299 | 2,286 |
JSON | 2 | 0 | 0 | 75 |
Markdown | 1 | 24 | 0 | 51 |
HTML | 1 | 0 | 0 | 14 |
YAML | 1 | 0 | 0 | 6 |
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.28 |
Average class complexity | 9.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 25 | 100.00% |
▷ Final classes | 1 | 4.00% |
Methods | 153 | |
▷ Static methods | 23 | 15.03% |
▷ Public methods | 144 | 94.12% |
▷ Protected methods | 1 | 0.65% |
▷ Private methods | 8 | 5.23% |
Functions | 8 | |
▷ Named functions | 6 | 75.00% |
▷ Anonymous functions | 2 | 25.00% |
Constants | 14 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 14 | 100.00% |
▷ Public constants | 14 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
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 |
includes/logos.png | 19.65KB | 8.23KB | ▼ 58.12% |