Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.37ms] Passed 4 tests
This is a short check of server-side resources used by Laybuy Payment Extension for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 35.88 ▼11.49 |
Dashboard /wp-admin | 3.34 ▲0.04 | 48.40 ▲2.45 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.31 ▲1.42 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 94.13 ▼2.30 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.18 ▼1.12 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Laybuy Payment Extension for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲37 | 13.55 ▼0.83 | 1.59 ▼1.10 | 39.07 ▼4.33 |
Dashboard /wp-admin | 2,214 ▲26 | 4.85 ▼0.02 | 109.85 ▼10.04 | 41.88 ▼3.08 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 1.97 ▼0.03 | 41.51 ▲7.21 | 36.45 ▲0.70 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 22.81 ▼0.40 | 622.04 ▼6.46 | 53.90 ▼5.06 |
Media Library /wp-admin/upload.php | 1,396 ▲14 | 4.20 ▼0.01 | 99.75 ▼4.28 | 44.43 ▲0.60 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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
- 12× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Laybuy_Processes_AbstractProcess' not found in wp-content/plugins/laybuy-gateway-for-woocommerce/includes/Laybuy/Processes/CreateQuote/CreateQuoteAbstract.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_editor() in wp-content/plugins/laybuy-gateway-for-woocommerce/includes/admin/wysiwyg.php:17
- > PHP Fatal error
Uncaught Error: Class 'Laybuy_Processes_AbstractProcess' not found in wp-content/plugins/laybuy-gateway-for-woocommerce/includes/Laybuy/Processes/Refund.php:3
- > PHP Fatal error
Uncaught Error: Class 'Laybuy_Processes_CreateQuote_CreateQuoteAbstract' not found in wp-content/plugins/laybuy-gateway-for-woocommerce/includes/Laybuy/Processes/CreateQuote/WC_GT_3_6/Process.php:3
- > PHP Fatal error
Uncaught Error: Class 'Laybuy_Processes_AbstractProcess' not found in wp-content/plugins/laybuy-gateway-for-woocommerce/includes/Laybuy/Processes/CreateOrder/CreateOrderAbstract.php:3
- > PHP Fatal error
Uncaught Error: Class 'Laybuy_Processes_AbstractProcess' not found in wp-content/plugins/laybuy-gateway-for-woocommerce/includes/Laybuy/Processes/CreateOrder/CompatibilityMode/Process.php:3
- > PHP Fatal error
Uncaught Error: Class 'Laybuy_Processes_CreateOrder_CreateOrderAbstract' not found in wp-content/plugins/laybuy-gateway-for-woocommerce/includes/Laybuy/Processes/CreateOrder/WC_LT_3_6/Process.php:3
- > PHP Fatal error
Uncaught Error: Class 'Laybuy_Processes_CreateOrder_CreateOrderAbstract' not found in wp-content/plugins/laybuy-gateway-for-woocommerce/includes/Laybuy/Processes/CreateOrder/WC_GT_3_6/Process.php:3
- > PHP Fatal error
Uncaught Error: Class 'Laybuy_Processes_CreateQuote_CreateQuoteAbstract' not found in wp-content/plugins/laybuy-gateway-for-woocommerce/includes/Laybuy/Processes/CreateQuote/WC_LT_3_6/Process.php:3
- > PHP Fatal error
Uncaught Error: Class 'Laybuy_Processes_AbstractProcess' not found in wp-content/plugins/laybuy-gateway-for-woocommerce/includes/Laybuy/Processes/RedirectPayment/CompatibilityMode/Process.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: payment-gateway, woocommerce
laybuy-gateway-for-woocommerce/laybuy-gateway-for-woocommerce.php 92% from 13 tests
The main PHP file in "Laybuy Payment Extension for WooCommerce" ver. 5.3.9 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.6" instead of "3.0.0")
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 plugin3,624 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 905 | 394 | 3,438 |
JavaScript | 1 | 31 | 0 | 122 |
CSS | 3 | 1 | 1 | 33 |
SVG | 1 | 0 | 1 | 30 |
Markdown | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 20.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 150.00 |
Average method complexity | 3.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 3 | 15.00% |
▷ Concrete classes | 17 | 85.00% |
▷ Final classes | 0 | 0.00% |
Methods | 153 | |
▷ Static methods | 9 | 5.88% |
▷ Public methods | 137 | 89.54% |
▷ Protected methods | 6 | 3.92% |
▷ Private methods | 10 | 6.54% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 26 | |
▷ Global constants | 5 | 19.23% |
▷ Class constants | 21 | 80.77% |
▷ Public constants | 21 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/laybuy_logo_transparent.png | 35.87KB | 17.34KB | ▼ 51.66% |
assets/images/laybuy-logo.png | 6.30KB | 5.77KB | ▼ 8.40% |