Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼29.89ms] Passed 4 tests
Server-side resources used by LayUp payment gateway plugin for woocommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.26 | 38.50 ▼1.17 |
Dashboard /wp-admin | 3.45 ▲0.10 | 31.55 ▼31.33 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 35.63 ▼8.36 |
Add New Post /wp-admin/post-new.php | 5.69 ▼0.20 | 67.44 ▼70.73 |
Media Library /wp-admin/upload.php | 3.46 ▲0.22 | 29.02 ▼9.15 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
recovery_mode_email_last_sent |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for LayUp payment gateway plugin for woocommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 1,457 ▼1,304 | 12.22 ▼2.30 | 1.74 ▼0.00 | 38.25 ▼6.00 |
Dashboard /wp-admin | 850 ▼1,331 | 1.36 ▼4.38 | 13.57 ▼93.11 | 19.95 ▼25.26 |
Posts /wp-admin/edit.php | 861 ▼1,242 | 1.33 ▼0.67 | 6.51 ▼28.30 | 22.25 ▼15.35 |
Add New Post /wp-admin/post-new.php | 587 ▼962 | 1.71 ▼16.41 | 19.01 ▼793.68 | 6.86 ▼61.31 |
Media Library /wp-admin/upload.php | 746 ▼654 | 1.71 ▼2.46 | 22.62 ▼75.31 | 22.16 ▼23.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- recovery_mode_email_last_sent
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Please take a closer look at the following
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/woo-layup-payment-gateway/includes/class-layup-wc-gateway.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-layup-payment-gateway/includes/layup-payment-plan-tab.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-layup-payment-gateway/includes/layup-wc-functions.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-layup-payment-gateway/includes/layup-is-live-check.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-layup-payment-gateway/includes/layup-cron.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/woo-layup-payment-gateway/includes/layup-payment-plan-shortcode.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: payment gateway, south africa, layup, woocommerce
woo-layup-payment-gateway/layup-gateway.php 92% from 13 tests
The main PHP script in "LayUp payment gateway plugin for woocommerce" version 1.9.8 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("woo-layup-payment-gateway.php" instead of "layup-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
Good job! No executable or dangerous file extensions detected2,561 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 1,405 | 538 | 2,540 |
CSS | 1 | 20 | 2 | 10 |
JavaScript | 1 | 13 | 0 | 10 |
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.31 |
Average class complexity | 84.00 |
▷ Minimum class complexity | 84.00 |
▷ Maximum class complexity | 84.00 |
Average method complexity | 8.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 9.09% |
Functions | 52 | |
▷ Named functions | 51 | 98.08% |
▷ Anonymous functions | 1 | 1.92% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/modal-imageAsset 2.png | 4.96KB | 2.34KB | ▼ 52.87% |
img/logo-color.168d4abe.png | 5.59KB | 2.58KB | ▼ 53.76% |
img/modal-imageAsset 4.png | 5.45KB | 2.76KB | ▼ 49.35% |
img/modal-imageAsset 3.png | 5.38KB | 2.65KB | ▼ 50.74% |
img/layup-logo-color.png | 15.68KB | 7.67KB | ▼ 51.11% |