Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.00MB] [CPU: ▼147.32ms] Passed 4 tests
This is a short check of server-side resources used by Plugin Name: SwipeZoom Global Payments and Shipping
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.00 | 24.45 ▲2.21 |
Dashboard /wp-admin | 3.06 ▼0.00 | 30.95 ▼13.94 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 30.47 ▼0.78 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 68.13 ▼574.57 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 22.18 ▲0.03 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 63 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Plugin Name: SwipeZoom Global Payments and Shipping: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,666 ▲39 | 15.88 ▼0.14 | 5.10 ▼1.98 | 75.57 ▲0.87 |
Dashboard /wp-admin | 2,930 ▲37 | 6.15 ▲0.06 | 116.30 ▼16.83 | 167.95 ▲0.55 |
Posts /wp-admin/edit.php | 2,743 ▲6 | 3.24 ▼0.01 | 65.87 ▲1.55 | 139.07 ▼2.97 |
Add New Post /wp-admin/post-new.php | 3,698 ▼109 | 18.36 ▼0.67 | 420.82 ▼45.31 | 163.73 ▼14.68 |
Media Library /wp-admin/upload.php | 1,752 ▼0 | 5.47 ▼0.06 | 149.06 ▲8.45 | 181.66 ▲0.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 9× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined index: post in wp-content/plugins/swipezoom-global-payment-and-shipping/woocommerce/admin/swipezoom-order-grid.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/swipezoom-global-payment-and-shipping/woocommerce-swipezoom-payment.php:6
- > PHP Notice
Undefined index: post in wp-content/plugins/swipezoom-global-payment-and-shipping/woocommerce/admin/swipezoom-shipping-handling-information.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/swipezoom-global-payment-and-shipping/woocommerce/admin/swipezoom-order-grid.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/swipezoom-global-payment-and-shipping/woocommerce/admin/swipezoom-item-package-details.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/swipezoom-global-payment-and-shipping/woocommerce/admin/swipezoom-shipping-handling-information.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/swipezoom-global-payment-and-shipping/overridden-functions.php:8
- > PHP Notice
Undefined index: post in wp-content/plugins/swipezoom-global-payment-and-shipping/woocommerce/admin/swipezoom-item-package-details.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/swipezoom-global-payment-and-shipping/woocommerce-swipezoom-internationalshipping.php:23
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Plugin Name: Please specify the plugin name on the first line (
=== Plugin Name: SwipeZoom Global Payments and Shipping===
) - Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
- Requires at least: Invalid version format
swipezoom-global-payment-and-shipping/woocommerce-swipezoom-internationalshipping.php 77% from 13 tests
"Plugin Name: SwipeZoom Global Payments and Shipping" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("swipezoom-global-payment-and-shipping.php" instead of "woocommerce-swipezoom-internationalshipping.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Domain Path: The domain path folder was not found ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin6,770 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 787 | 708 | 2,812 |
XSD | 5 | 368 | 65 | 2,013 |
XML | 9 | 294 | 52 | 1,156 |
JavaScript | 2 | 161 | 84 | 715 |
CSS | 1 | 7 | 9 | 74 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 33.67 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 73.00 |
Average method complexity | 2.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 58 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 48 | 82.76% |
▷ Protected methods | 10 | 17.24% |
▷ Private methods | 0 | 0.00% |
Functions | 41 | |
▷ Named functions | 41 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
15 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/payment_logos/sepa50.png | 2.84KB | 1.91KB | ▼ 32.60% |
assets/images/payment_logos/jcb50.png | 3.12KB | 2.09KB | ▼ 32.93% |
assets/images/payment_logos/visa50.png | 1.89KB | 1.73KB | ▼ 8.17% |
assets/images/payment_logos/diners50.png | 1.46KB | 1.66KB | 0.00% |
assets/images/payment_logos/visaelectron50.png | 3.03KB | 2.10KB | ▼ 30.62% |