Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲5.34MB] [CPU: ▲22.82ms] 50% from 4 tests
A check of server-side resources used by Table Rate Shipping for WooCommerce
Please take the time to fix the following items
- CPU: Total CPU usage must kept under 500.00ms (currently 1,118.74ms on /wp-admin/admin.php?page=livemesh-table-rate-shipping)
- Extra RAM: Extra memory usage must be kept under 5MB (currently 5.34MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.19 ▲5.73 | 61.08 ▲20.42 |
Dashboard /wp-admin | 9.21 ▲5.91 | 67.67 ▲7.89 |
Posts /wp-admin/edit.php | 9.21 ▲5.86 | 76.47 ▲30.32 |
Add New Post /wp-admin/post-new.php | 9.76 ▲3.88 | 121.67 ▲32.65 |
Media Library /wp-admin/upload.php | 9.21 ▲5.98 | 71.78 ▲34.66 |
Table Rate Shipping for WooCommerce /wp-admin/admin.php?page=livemesh-table-rate-shipping | 9.21 | 1,118.74 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 9.21 | 56.40 |
Server storage [IO: ▲3.46MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 261 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
fs_active_plugins |
fs_accounts |
db_upgraded |
fs_debug_mode |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Table Rate Shipping for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲86 | 13.16 ▼1.21 | 1.63 ▼0.12 | 27.33 ▼24.90 |
Dashboard /wp-admin | 2,227 ▲39 | 4.91 ▼0.93 | 113.80 ▼12.77 | 51.73 ▲6.41 |
Posts /wp-admin/edit.php | 2,113 ▲27 | 2.06 ▲0.04 | 40.49 ▲5.74 | 38.92 ▲4.19 |
Add New Post /wp-admin/post-new.php | 1,537 ▲18 | 22.87 ▼0.29 | 622.66 ▼53.43 | 51.89 ▼4.48 |
Media Library /wp-admin/upload.php | 1,409 ▲21 | 4.20 ▲0.02 | 96.46 ▲0.63 | 44.56 ▼2.11 |
Table Rate Shipping for WooCommerce /wp-admin/admin.php?page=livemesh-table-rate-shipping | 972 | 1.71 | 23.60 | 52.00 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,068 | 2.20 | 25.36 | 27.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/livemesh-table-rate-shipping/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 9 options in the database
- fs_active_plugins
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- fs_debug_mode
- widget_recent-comments
- widget_theysaidso_widget
- fs_accounts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: table rate, conditional shipping, woocommerce shipping, woocommerce, table rate shipping
livemesh-table-rate-shipping/livemesh-table-rate-shipping.php 69% from 13 tests
The primary PHP file in "Table Rate Shipping for WooCommerce" version 1.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Domain Path: The domain path must begin with a forward slash character ("/languages")
- Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
- Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "5.2")
Code Analysis 97% from 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 plugin39,263 lines of code in 211 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 179 | 9,190 | 17,804 | 36,416 |
PO File | 2 | 476 | 804 | 1,156 |
CSS | 17 | 23 | 15 | 576 |
Sass | 2 | 83 | 7 | 478 |
JavaScript | 9 | 97 | 85 | 422 |
Markdown | 1 | 68 | 0 | 214 |
SVG | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Please fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 47.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 100 | |
▷ Abstract classes | 4 | 4.00% |
▷ Concrete classes | 96 | 96.00% |
▷ Final classes | 1 | 1.04% |
Methods | 1,489 | |
▷ Static methods | 198 | 13.30% |
▷ Public methods | 1,090 | 73.20% |
▷ Protected methods | 19 | 1.28% |
▷ Private methods | 380 | 25.52% |
Functions | 111 | |
▷ Named functions | 111 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 154 | |
▷ Global constants | 107 | 69.48% |
▷ Class constants | 47 | 30.52% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/livemesh-table-rate-shipping.png | 3.12KB | 2.85KB | ▼ 8.43% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |