Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.84ms] Passed 4 tests
An overview of server-side resources used by WooCommerce Multiple Payment Gateways (WCMPG)
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 40.68 ▲0.75 |
Dashboard /wp-admin | 3.33 ▲0.02 | 49.08 ▼3.61 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.56 ▼5.16 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 93.54 ▼7.32 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 39.54 ▲5.21 |
Server storage [IO: ▲0.65MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce Multiple Payment Gateways (WCMPG)
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.18 ▼1.47 | 1.59 ▼0.13 | 42.15 ▼4.46 |
Dashboard /wp-admin | 2,209 ▲18 | 5.90 ▲0.99 | 97.74 ▼6.52 | 39.14 ▲0.18 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 1.99 ▼0.00 | 40.25 ▲5.30 | 34.70 ▼0.18 |
Add New Post /wp-admin/post-new.php | 1,542 ▲14 | 18.29 ▲0.10 | 632.47 ▼35.72 | 54.67 ▲5.45 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.19 ▼0.08 | 95.34 ▼10.50 | 44.84 ▼1.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/wcmpg/includes/paybox/class-wcmpg-paybox.php:14
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/wcmpg/includes/mercanet/class-wcmpg-mercanet.php:14
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/wcmpg/includes/sips-paypage-post/class-wcmpg-sips-paypage-post.php:14
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/wcmpg/admin/class-wcmpg-licence.php:14
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/wcmpg/includes/sips/class-wcmpg-sips.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wcmpg/admin/settings.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wcmpg/includes/functions.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/wcmpg/includes/axepta/class-wcmpg-axepta.php:17
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/wcmpg/includes/systempay/class-wcmpg-systempay.php:14
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/wcmpg/includes/monetico/class-wcmpg-monetico.php:14
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
wcmpg/wcmpg.php Passed 13 tests
"WooCommerce Multiple Payment Gateways (WCMPG)" version 1.65's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
42 characters long description:
Multiple Payment Gateways for WooCommerce.
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
Everything looks great! No dangerous files found in this plugin3,657 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 346 | 558 | 2,951 |
PO File | 1 | 338 | 581 | 706 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 21.36 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 2.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 120 | |
▷ Static methods | 1 | 0.83% |
▷ Public methods | 101 | 84.17% |
▷ Protected methods | 1 | 0.83% |
▷ Private methods | 18 | 15.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 8 | 100.00% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
16 PNG files occupy 0.38MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icons/mercanet.png | 2.96KB | 1.79KB | ▼ 39.41% |
assets/paypal.png | 44.63KB | 21.15KB | ▼ 52.62% |
assets/paybox.png | 32.84KB | 16.91KB | ▼ 48.53% |
assets/icons/paypal.png | 2.32KB | 1.72KB | ▼ 26.01% |
assets/mercanet.png | 57.48KB | 19.45KB | ▼ 66.15% |