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.18MB] [CPU: ▼3.08ms] Passed 4 tests
A check of server-side resources used by AfterShip Shipping: Free Shipping Labels for WooCommerce, Discounted Shipping Rates
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 43.17 ▼0.29 |
Dashboard /wp-admin | 3.53 ▲0.22 | 49.76 ▲1.36 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 46.46 ▼4.91 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 87.41 ▼7.51 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 38.22 ▲0.41 |
Server storage [IO: ▲0.70MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 10 new options
New WordPress options |
---|
db_upgraded |
PostmenWoocommercePlugin_Plugin_CanDoSomething |
widget_recent-posts |
PostmenWoocommercePlugin_Plugin__installed |
PostmenWoocommercePlugin_Plugin_AmAwesome |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
PostmenWoocommercePlugin_Plugin__version |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for AfterShip Shipping: Free Shipping Labels for WooCommerce, Discounted Shipping Rates
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.45 ▲0.14 | 2.10 ▲0.14 | 45.16 ▲0.25 |
Dashboard /wp-admin | 2,206 ▲18 | 5.81 ▼0.00 | 97.83 ▼20.22 | 37.99 ▼6.70 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▼0.01 | 38.66 ▲1.05 | 38.22 ▲4.07 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.09 ▼0.36 | 674.35 ▲40.78 | 57.05 ▲6.46 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.28 ▲0.07 | 97.10 ▼5.21 | 42.94 ▼2.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 10 options in the database
- PostmenWoocommercePlugin_Plugin_AmAwesome
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- PostmenWoocommercePlugin_Plugin_CanDoSomething
- widget_recent-posts
- widget_theysaidso_widget
- PostmenWoocommercePlugin_Plugin__version
- PostmenWoocommercePlugin_Plugin__installed
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/postmen-woo-shipping/postmen-woocommerce-plugin.php:84
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: woocommerce, dhl, usps, canada post, weight based shipping...
postmen-woo-shipping/postmen-woocommerce-plugin.php 69% from 13 tests
The main PHP file in "AfterShip Shipping: Free Shipping Labels for WooCommerce, Discounted Shipping Rates" ver. 1.3.14 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 145 characters long)
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Plugin Name: Please shorten the plugin name (currently 83 characters long instead of max. 70)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("postmen-woo-shipping.php" instead of "postmen-woocommerce-plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin2,820 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 720 | 1,556 | 2,786 |
JavaScript | 1 | 8 | 7 | 34 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 20.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 78.00 |
Average method complexity | 3.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 2 | 12.50% |
▷ Concrete classes | 14 | 87.50% |
▷ Final classes | 0 | 0.00% |
Methods | 147 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 96 | 65.31% |
▷ Protected methods | 37 | 25.17% |
▷ Private methods | 14 | 9.52% |
Functions | 14 | |
▷ Named functions | 13 | 92.86% |
▷ Anonymous functions | 1 | 7.14% |
Constants | 18 | |
▷ Global constants | 1 | 5.56% |
▷ Class constants | 17 | 94.44% |
▷ Public constants | 17 | 100.00% |
Plugin size 0% from 2 tests
Image compression 0% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.54MB with 0.35MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 55.23KB | 25.21KB | ▼ 54.35% |
assets/icon-256x256.png | 4.21KB | 1.96KB | ▼ 53.30% |
assets/icon-128x128.png | 2.64KB | 1.05KB | ▼ 60.18% |
(invalid) assets/screenshot-1.png | 55.60KB | 0.00KB | ▼ 100.00% |
assets/banner-1544x500.png | 138.88KB | 62.72KB | ▼ 54.84% |