Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/woocommerce-paymaster-gateway-019/wc-paymaster.php+1284
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
Server metrics [RAM: ▼1.49MB] [CPU: ▼50.69ms] Passed 4 tests
An overview of server-side resources used by PayMaster for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.50 ▼0.96 | 5.19 ▼35.01 |
Dashboard /wp-admin | 2.52 ▼0.79 | 6.60 ▼41.39 |
Posts /wp-admin/edit.php | 2.52 ▼0.84 | 7.54 ▼40.91 |
Add New Post /wp-admin/post-new.php | 2.52 ▼3.37 | 7.46 ▼85.44 |
Media Library /wp-admin/upload.php | 2.52 ▼0.71 | 7.06 ▼26.70 |
Server storage [IO: ▲0.94MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for PayMaster for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲73 | 13.30 ▼1.34 | 4.56 ▲2.64 | 39.79 ▼7.00 |
Dashboard /wp-admin | 2,217 ▲26 | 4.91 ▲0.03 | 103.44 ▼14.00 | 38.51 ▼8.09 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.03 ▼0.00 | 40.40 ▲6.62 | 36.22 ▲1.00 |
Add New Post /wp-admin/post-new.php | 1,522 ▼12 | 17.67 ▼5.20 | 715.46 ▲51.96 | 65.47 ▲7.27 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.24 ▲0.01 | 94.36 ▼1.87 | 38.97 ▼2.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/woocommerce-paymaster-gateway-019/wc-paymaster.php+1284
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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 fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/woocommerce-paymaster-gateway-019/includes/index.php
- > /wp-content/plugins/woocommerce-paymaster-gateway-019/includes/status/status.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/woocommerce-paymaster-gateway-019/wc-paymaster.php on line 1284
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/woocommerce-paymaster-gateway-019/wc-paymaster.php on line 1285
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woocommerce-paymaster-gateway-019/wc-paymaster.php:24
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: paymaster, woocommerce, woo commerce, payment getaway, ecommerce
woocommerce-paymaster-gateway-019/wc-paymaster.php 85% from 13 tests
This is the main PHP file of "PayMaster for WooCommerce" version 0.4.31, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 338 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woocommerce-paymaster-gateway-019.php" instead of "wc-paymaster.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
These items require your attention
- For security reasons, never distribute binary or executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/woocommerce-paymaster-gateway-019/includes/ca-bundle.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 306 | 164 | 914 |
JavaScript | 1 | 12 | 19 | 55 |
CSS | 2 | 0 | 0 | 51 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 49.00 |
▷ Minimum class complexity | 49.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 4.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 22 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 PNG files occupy 0.33MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-9.png | 14.41KB | 8.43KB | ▼ 41.53% |
assets/screenshot-5.png | 42.40KB | 21.80KB | ▼ 48.58% |
assets/screenshot-2.png | 64.58KB | 35.24KB | ▼ 45.43% |
assets/screenshot-7.png | 24.94KB | 11.56KB | ▼ 53.64% |
assets/screenshot-11.png | 8.49KB | 5.16KB | ▼ 39.29% |