Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼295.86ms] Passed 4 tests
Server-side resources used by LatitudePay & Genoapay Integrations for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.03 | 57.67 ▲4.27 |
Dashboard /wp-admin | 3.43 ▲0.03 | 33.97 ▼1.89 |
Posts /wp-admin/edit.php | 3.66 ▲0.03 | 40.95 ▲3.96 |
Add New Post /wp-admin/post-new.php | 6.91 ▼0.06 | 98.06 ▼1,166.03 |
Media Library /wp-admin/upload.php | 3.32 ▲0.02 | 27.98 ▼19.46 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 53 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
LatitudePay & Genoapay Integrations for WooCommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,775 ▲21 | 15.88 ▲0.24 | 5.70 ▲0.13 | 2.18 ▼0.67 |
Dashboard /wp-admin | 2,907 ▲46 | 6.11 ▼0.02 | 125.09 ▼10.49 | 161.94 ▼10.38 |
Posts /wp-admin/edit.php | 2,704 ▲13 | 3.24 ▲0.01 | 64.66 ▼0.08 | 140.26 ▼1.63 |
Add New Post /wp-admin/post-new.php | 1,727 ▲31 | 22.46 ▲0.63 | 525.86 ▲81.64 | 220.83 ▲12.58 |
Media Library /wp-admin/upload.php | 1,710 ▲12 | 5.52 ▼0.01 | 138.06 ▼29.94 | 189.56 ▼4.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/latitude-pay-genoa-pay-integrations/templates/checkout/genoapay/modal.php
- 16× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'BinaryPay' not found in wp-content/plugins/latitude-pay-genoa-pay-integrations/includes/Gateways/Genoapay.php:28
- > PHP Fatal error
Uncaught Error: Class 'WC_LatitudeFinance_Base' not found in wp-content/plugins/latitude-pay-genoa-pay-integrations/includes/class-latitudefinance.php:27
- > PHP Warning
Use of undefined constant WC_LATITUDEPAY_ASSETS - assumed 'WC_LATITUDEPAY_ASSETS' (this will throw an Error in a future version of PHP) in wp-content/plugins/latitude-pay-genoa-pay-integrations/templates/checkout/genoapay/modal.php on line 29
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/latitude-pay-genoa-pay-integrations/includes/wc-latitudefinance-hooks.php:33
- > PHP Fatal error
Uncaught Error: Class 'Genoapay' not found in wp-content/plugins/latitude-pay-genoa-pay-integrations/includes/Gateways/Latitudepay.php:28
- > PHP Fatal error
Uncaught Error: Call to a member function output_checkout_fields() on null in wp-content/plugins/latitude-pay-genoa-pay-integrations/templates/checkout/genoapay/info.php:27
- > PHP Notice
Undefined variable: gateway in wp-content/plugins/latitude-pay-genoa-pay-integrations/templates/checkout/genoapay/info.php on line 27
- > PHP Fatal error
Uncaught Error: Class 'WC_Gateway_Genoapay_Blocks_Support' not found in wp-content/plugins/latitude-pay-genoa-pay-integrations/includes/Blocks/LatitudePay.php:5
- > PHP Warning
Use of undefined constant WC_LATITUDEPAY_ASSETS - assumed 'WC_LATITUDEPAY_ASSETS' (this will throw an Error in a future version of PHP) in wp-content/plugins/latitude-pay-genoa-pay-integrations/templates/checkout/genoapay/modal.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\WooCommerce\\Blocks\\Payments\\Integrations\\AbstractPaymentMethodType' not found in wp-content/plugins/latitude-pay-genoa-pay-integrations/includes/Blocks/Genoapay.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Contributors: The plugin contributors field is not present
- Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5, #6 in latitude-pay-genoa-pay-integrations/assets to your readme.txt
latitude-pay-genoa-pay-integrations/LatitudeFinance.php 77% from 13 tests
Analyzing the main PHP file in "LatitudePay & Genoapay Integrations for WooCommerce" version 2.2.1
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("latitude-pay-genoa-pay-integrations.php" instead of "LatitudeFinance.php")
- Description: Keep the plugin description shorter than 140 characters (currently 160 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected2,821 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 505 | 1,469 | 2,336 |
CSS | 2 | 2 | 0 | 209 |
SVG | 11 | 0 | 2 | 171 |
JavaScript | 3 | 7 | 2 | 105 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 16.53 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 92.00 |
Average method complexity | 2.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 2 | 15.38% |
▷ Concrete classes | 11 | 84.62% |
▷ Final classes | 1 | 9.09% |
Methods | 148 | |
▷ Static methods | 10 | 6.76% |
▷ Public methods | 128 | 86.49% |
▷ Protected methods | 17 | 11.49% |
▷ Private methods | 3 | 2.03% |
Functions | 20 | |
▷ Named functions | 19 | 95.00% |
▷ Anonymous functions | 1 | 5.00% |
Constants | 119 | |
▷ Global constants | 6 | 5.04% |
▷ Class constants | 113 | 94.96% |
▷ Public constants | 113 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/latitudepay/lp_phone.png | 3.34KB | 3.41KB | 0.00% |
assets/genoapay/gen_background_slim_modal.png | 7.15KB | 6.85KB | ▼ 4.26% |
assets/latitudepay/lp_tick.png | 0.35KB | 0.29KB | ▼ 18.84% |
assets/latitudepay/lp_calender.png | 5.13KB | 5.27KB | 0.00% |
assets/latitudepay/lpay_modal_logo.png | 4.85KB | 2.95KB | ▼ 39.32% |