Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼6.59ms] Passed 4 tests
A check of server-side resources used by Plugin Name: SwipeZoom Global Payments and Shipping
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.17 ▲0.87 |
Dashboard /wp-admin | 3.31 ▼0.04 | 43.92 ▼15.39 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.51 ▲1.07 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 79.43 ▼10.85 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.38 ▼1.00 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 63 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Plugin Name: SwipeZoom Global Payments and Shipping: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.29 ▼0.34 | 1.95 ▲0.25 | 44.62 ▲4.21 |
Dashboard /wp-admin | 2,198 ▲18 | 5.60 ▼0.03 | 85.08 ▼1.86 | 39.09 ▼2.92 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.94 ▼0.22 | 35.04 ▼7.83 | 32.25 ▼4.21 |
Add New Post /wp-admin/post-new.php | 1,526 ▼11 | 23.66 ▲5.46 | 664.24 ▲47.41 | 52.97 ▼12.11 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.20 ▼0.04 | 95.30 ▼2.73 | 40.97 ▼2.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
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 no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 9× GET requests to PHP files have triggered server-side errors or warnings:
- > 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 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-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 apply_filters() in wp-content/plugins/swipezoom-global-payment-and-shipping/woocommerce-swipezoom-internationalshipping.php:23
- > 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 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 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 apply_filters() in wp-content/plugins/swipezoom-global-payment-and-shipping/woocommerce-swipezoom-payment.php:6
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
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 need to be fixed:
- Requires at least: Version not formatted correctly
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== Plugin Name: SwipeZoom Global Payments and Shipping===
) - Tags: There are too many tags (11 tag instead of maximum 10)
swipezoom-global-payment-and-shipping/woocommerce-swipezoom-internationalshipping.php 77% from 13 tests
The main PHP file in "Plugin Name: SwipeZoom Global Payments and Shipping" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("swipezoom-global-payment-and-shipping.php" instead of "woocommerce-swipezoom-internationalshipping.php")
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
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
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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/elv50.png | 4.62KB | 2.65KB | ▼ 42.72% |
assets/images/payment_logos/maestro50.png | 4.25KB | 2.39KB | ▼ 43.80% |
assets/images/payment_logos/mastercardseecurecode50.png | 3.09KB | 2.03KB | ▼ 34.45% |
assets/images/payment_logos/diners50.png | 1.46KB | 1.66KB | 0.00% |
assets/images/sz.png | 4.11KB | 2.35KB | ▼ 42.86% |