Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼3.98ms] Passed 4 tests
An overview of server-side resources used by LivePayments - mobilPay Card WooCommerce Payment Gateway
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 36.59 ▼2.17 |
Dashboard /wp-admin | 3.42 ▲0.12 | 44.81 ▼4.19 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 48.52 ▼0.84 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 84.82 ▼8.71 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 37.16 ▲3.61 |
Server storage [IO: ▲1.00MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 125 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_lvdwcmc_mobilpay_transactions |
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
lvd_wc_mc_plugin_version |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by LivePayments - mobilPay Card WooCommerce Payment Gateway
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲79 | 14.47 ▲0.18 | 1.80 ▲0.05 | 31.18 ▼7.83 |
Dashboard /wp-admin | 2,223 ▲38 | 4.85 ▼1.00 | 111.65 ▲2.07 | 43.62 ▼1.87 |
Posts /wp-admin/edit.php | 2,103 ▲14 | 2.00 ▲0.01 | 40.61 ▼2.28 | 39.61 ▲0.57 |
Add New Post /wp-admin/post-new.php | 1,545 ▲25 | 23.03 ▼0.32 | 649.77 ▼17.11 | 54.16 ▼2.45 |
Media Library /wp-admin/upload.php | 1,402 ▲14 | 4.25 ▲0.03 | 94.10 ▼24.93 | 46.02 ▼2.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/wc-mobilpayments-card/lib/Installer.php+350
rmdir(wp-content/uploads/livepayments-mp-wc): Directory not empty
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 17× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'LvdWcMc\\PluginModules\\PluginModule' not found in wp-content/plugins/wc-mobilpayments-card/lib/pluginModules/WooCommerceAdminDashboardReportingWidgetsModule.php:36
- > PHP Fatal error
Uncaught Error: Class 'Mobilpay_Payment_Request_Abstract' not found in wp-content/plugins/wc-mobilpayments-card/lib/3rdParty/mobilpay/payment/request/Sms.php:10
- > PHP Fatal error
Uncaught Error: Class 'LvdWcMc\\PluginModules\\PluginModule' not found in wp-content/plugins/wc-mobilpayments-card/lib/pluginModules/WordPressDashboardReportingWidgetsModule.php:36
- > PHP Fatal error
Uncaught Error: Class 'WC_Email' not found in wp-content/plugins/wc-mobilpayments-card/lib/MobilpayCreditCardGatewayDiagnosticsEmail.php:5
- > PHP Fatal error
Uncaught Error: Class 'LvdWcMc\\PluginModules\\PluginModule' not found in wp-content/plugins/wc-mobilpayments-card/lib/pluginModules/GatewayDiagnosticsModule.php:40
- > PHP Fatal error
Uncaught Error: Class 'LvdWcMc\\PluginModules\\PluginModule' not found in wp-content/plugins/wc-mobilpayments-card/lib/pluginModules/OrderTransactionSupportModule.php:37
- > PHP Fatal error
Trait 'LvdWcMc\\LoggingExtensions' not found in wp-content/plugins/wc-mobilpayments-card/lib/ApiServer.php on line 33
- > PHP Fatal error
Uncaught Error: Class 'LvdWcMc\\PluginModules\\PluginModule' not found in wp-content/plugins/wc-mobilpayments-card/lib/pluginModules/AdminTransactionDetailsModule.php:38
- > PHP Fatal error
Uncaught Error: Class 'LvdWcMc\\PluginModules\\PluginModule' not found in wp-content/plugins/wc-mobilpayments-card/lib/pluginModules/WebPageAssetsExtensionPointsProviderModule.php:6
- > AH00126
Invalid URI in request '' 'GET /wp-content/plugins/wc-mobilpayments-card/media/../../../../../ HTTP/1.0'
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: woocommerce, card, payment, mobilpay, creditcard
wc-mobilpayments-card/lvdwcmc-plugin-main.php 77% from 13 tests
The entry point to "LivePayments - mobilPay Card WooCommerce Payment Gateway" version 0.1.6 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "3.2.0")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wc-mobilpayments-card.php" instead of "lvdwcmc-plugin-main.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected16,134 lines of code in 103 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 73 | 1,972 | 4,509 | 9,673 |
JavaScript | 21 | 901 | 1,025 | 5,321 |
CSS | 7 | 76 | 151 | 574 |
PO File | 1 | 210 | 262 | 565 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 22.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 221.00 |
Average method complexity | 2.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 1 | |
Traits | 2 | |
Classes | 46 | |
▷ Abstract classes | 2 | 4.35% |
▷ Concrete classes | 44 | 95.65% |
▷ Final classes | 0 | 0.00% |
Methods | 712 | |
▷ Static methods | 27 | 3.79% |
▷ Public methods | 432 | 60.67% |
▷ Protected methods | 58 | 8.15% |
▷ Private methods | 222 | 31.18% |
Functions | 18 | |
▷ Named functions | 13 | 72.22% |
▷ Anonymous functions | 5 | 27.78% |
Constants | 145 | |
▷ Global constants | 20 | 13.79% |
▷ Class constants | 125 | 86.21% |
▷ Public constants | 125 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
media/img/mobilpay.png | 4.89KB | 2.72KB | ▼ 44.41% |