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: ▲0.00MB] [CPU: ▼3.17ms] Passed 4 tests
Server-side resources used by WooCommerce LPS Payment Gateway (API)
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.30 ▼2.87 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.58 ▼5.76 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.05 ▼0.95 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 96.97 ▼3.09 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.33 ▲3.07 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for WooCommerce LPS Payment Gateway (API)
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.27 ▲0.00 | 1.79 ▲0.15 | 43.07 ▲3.11 |
Dashboard /wp-admin | 2,192 ▲12 | 5.59 ▼0.04 | 92.89 ▼1.21 | 40.52 ▲0.04 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.97 ▼0.05 | 35.07 ▼11.96 | 31.79 ▼4.00 |
Add New Post /wp-admin/post-new.php | 1,537 ▼0 | 18.25 ▲0.16 | 640.32 ▲10.20 | 65.43 ▼8.56 |
Media Library /wp-admin/upload.php | 1,397 ▲3 | 4.18 ▲0.06 | 100.96 ▼7.38 | 43.24 ▼1.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/lateral-payment-solutions-lps-uk-apigateway/class-woocommerce-lpsapi-payment-gateway.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/lateral-payment-solutions-lps-uk-apigateway/lps-api-gateway.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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
These attributes need to be fixed:
- Screenshots: These screenshots need descriptions #0, #0, #0, #0, #0 in lateral-payment-solutions-lps-uk-apigateway/assets to your readme.txt
- Screenshots: Screenshot #1 (plugin folder->get_started) image missing
lateral-payment-solutions-lps-uk-apigateway/lps-api-gateway.php 92% from 13 tests
This is the main PHP file of "WooCommerce LPS Payment Gateway (API)" version 4.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("lateral-payment-solutions-lps-uk-apigateway.php" instead of "lps-api-gateway.php")
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
Success! There were no dangerous files found in this plugin364 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 87 | 12 | 364 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 37.00 |
▷ Minimum class complexity | 37.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 8.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 0.36MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/visa.png | 4.65KB | 1.63KB | ▼ 64.83% |
get_started/screenshot1.png | 157.79KB | 58.21KB | ▼ 63.11% |
get_started/screenshot5.png | 29.19KB | 14.99KB | ▼ 48.65% |
images/api-image.png | 9.87KB | 3.24KB | ▼ 67.23% |
get_started/screenshot4.png | 42.23KB | 17.99KB | ▼ 57.41% |