Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.26MB] [CPU: ▼3.98ms] Passed 4 tests
Server-side resources used by Flat Rate per State/Country/Region for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 39.06 ▼1.27 |
Dashboard /wp-admin | 3.56 ▲0.26 | 49.75 ▼0.68 |
Posts /wp-admin/edit.php | 3.68 ▲0.32 | 49.86 ▼0.18 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.26 | 89.39 ▼13.78 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 37.50 ▲4.34 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Flat Rate per State/Country/Region for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.26 ▼1.03 | 4.53 ▲2.83 | 43.92 ▼2.31 |
Dashboard /wp-admin | 2,203 ▲18 | 5.81 ▲0.95 | 98.61 ▼6.06 | 38.89 ▼2.95 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.05 ▲0.06 | 35.77 ▼2.46 | 30.68 ▼4.05 |
Add New Post /wp-admin/post-new.php | 1,542 ▲5 | 18.10 ▼5.22 | 608.28 ▼9.49 | 66.45 ▲6.84 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.16 ▼0.04 | 102.37 ▼5.38 | 42.24 ▼4.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
flat-rate-per-countryregion-for-woocommerce/woocommerce_flatrate_percountry.php 85% from 13 tests
"Flat Rate per State/Country/Region for WooCommerce" version 2.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("flat-rate-per-countryregion-for-woocommerce.php" instead of "woocommerce_flatrate_percountry.php")
- Description: Keep the plugin description shorter than 140 characters (currently 147 characters long)
Code Analysis 97% 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
There were no executable files found in this plugin1,310 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 37 | 152 | 1,295 |
SVG | 1 | 1 | 1 | 15 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please tend to the following items
- Method cyclomatic complexity has to be reduced to less than 100 (currently 149)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.78 |
Average class complexity | 229.00 |
▷ Minimum class complexity | 229.00 |
▷ Maximum class complexity | 229.00 |
Average method complexity | 15.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 149.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 5 | 71.43% |
▷ Anonymous functions | 2 | 28.57% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
webdados_invoicexpress_nag/invoicexpress-woocommerce-logo.png | 8.10KB | 7.67KB | ▼ 5.25% |