Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼3.97ms] Passed 4 tests
Server-side resources used by Flat Rate Shipping Plugin For WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 40.40 ▲1.43 |
Dashboard /wp-admin | 3.31 ▼0.04 | 50.09 ▼8.95 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.72 ▲0.20 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.31 ▼6.88 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.94 ▼0.24 |
Server storage [IO: ▲10.22MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 343 new files
Database: no new tables, 10 new options
New WordPress options |
---|
can_compress_scripts |
afrsm_version |
db_upgraded |
widget_recent-posts |
fs_debug_mode |
fs_accounts |
fs_active_plugins |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Flat Rate Shipping Plugin For WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.34 ▲0.19 | 1.83 ▼0.07 | 43.35 ▲2.35 |
Dashboard /wp-admin | 2,198 ▲21 | 5.62 ▼0.03 | 86.09 ▲1.32 | 40.71 ▲0.96 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.96 ▼0.12 | 32.56 ▼5.68 | 33.55 ▼2.04 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 18.20 ▼4.92 | 589.16 ▼100.07 | 69.27 ▲16.30 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.21 ▲0.03 | 92.66 ▼16.15 | 41.98 ▼5.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 10 options in the database
- widget_recent-comments
- afrsm_version
- widget_theysaidso_widget
- fs_debug_mode
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- fs_accounts
- widget_recent-posts
- fs_active_plugins
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/woo-extra-flat-rate/admin/partials/header/plugin-footer.php
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 83% from 29 tests
readme.txt 94% 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:
- Screenshots: Add descriptions for screenshots #10, #9 in woo-extra-flat-rate/assets to your readme.txt
woo-extra-flat-rate/advanced-flat-rate-shipping-for-woocommerce.php 69% from 13 tests
The entry point to "Flat Rate Shipping Plugin For WooCommerce" version 4.2.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 258 characters long)
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Requires at least: Required version must match the one declared in readme.txt ("5.0" instead of "3.0")
- Main file name: The principal plugin file should be the same as the plugin slug ("woo-extra-flat-rate.php" instead of "advanced-flat-rate-shipping-for-woocommerce.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin60,193 lines of code in 196 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 147 | 9,259 | 19,981 | 44,318 |
PO File | 4 | 2,315 | 4,400 | 6,614 |
JavaScript | 10 | 445 | 795 | 4,765 |
CSS | 26 | 82 | 367 | 2,870 |
SVG | 6 | 0 | 0 | 1,334 |
XML | 2 | 13 | 16 | 290 |
Markdown | 1 | 0 | 0 | 2 |
PHP code 0% from 2 tests
Analyzing cyclomatic complexity and code structure
These items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
- Method cyclomatic complexity has to be reduced to less than 100 (currently 142)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 97.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 5.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 142.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 62 | |
▷ Abstract classes | 2 | 3.23% |
▷ Concrete classes | 60 | 96.77% |
▷ Final classes | 0 | 0.00% |
Methods | 1,472 | |
▷ Static methods | 225 | 15.29% |
▷ Public methods | 1,068 | 72.55% |
▷ Protected methods | 20 | 1.36% |
▷ Private methods | 384 | 26.09% |
Functions | 115 | |
▷ Named functions | 115 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 163 | |
▷ Global constants | 112 | 68.71% |
▷ Class constants | 51 | 31.29% |
▷ Public constants | 51 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
78 PNG files occupy 3.60MB with 2.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/brand-agency.png | 8.87KB | 4.52KB | ▼ 49.09% |
admin/images/wc-conditional-product-fees.png | 2.98KB | 1.58KB | ▼ 47.03% |
admin/images/meraki-wp.png | 1.74KB | 1.07KB | ▼ 38.64% |
admin/images/thedotstore-images/trash.png | 1.21KB | 0.29KB | ▼ 76.39% |
admin/images/thedotstore-images/menu-icon.png | 2.02KB | 0.66KB | ▼ 67.52% |