Benchmarks
Plugin footprint 65% 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: ▲4.98MB] [CPU: ▲25.20ms] Passed 4 tests
A check of server-side resources used by Weight Based Shipping For WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.88 ▲5.42 | 67.92 ▲26.11 |
Dashboard /wp-admin | 8.90 ▲5.59 | 75.92 ▲27.94 |
Posts /wp-admin/edit.php | 8.90 ▲5.54 | 78.43 ▲30.08 |
Add New Post /wp-admin/post-new.php | 9.25 ▲3.36 | 105.92 ▲16.68 |
Media Library /wp-admin/upload.php | 8.90 ▲5.67 | 64.89 ▲30.36 |
Weight Based Shipping For WooCommerce /wp-admin/admin.php?page=livemesh-weight-based-shipping | 8.90 | 61.95 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.90 | 58.88 |
Server storage [IO: ▲3.43MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 261 new files
Database: no new tables, 9 new options
New WordPress options |
---|
fs_debug_mode |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
fs_accounts |
widget_recent-posts |
fs_active_plugins |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Weight Based Shipping For WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲75 | 13.23 ▼1.06 | 1.73 ▼0.10 | 32.38 ▼10.83 |
Dashboard /wp-admin | 2,227 ▲39 | 5.86 ▲0.97 | 109.32 ▼4.95 | 46.56 ▲3.38 |
Posts /wp-admin/edit.php | 2,113 ▲24 | 2.01 ▼0.01 | 33.82 ▼2.46 | 36.21 ▲1.03 |
Add New Post /wp-admin/post-new.php | 1,523 ▲9 | 23.07 ▲5.53 | 638.78 ▼10.47 | 65.95 ▲3.70 |
Media Library /wp-admin/upload.php | 1,412 ▲30 | 4.26 ▲0.07 | 95.27 ▼1.74 | 44.83 ▼0.55 |
Weight Based Shipping For WooCommerce /wp-admin/admin.php?page=livemesh-weight-based-shipping | 1,002 | 1.72 | 27.94 | 58.36 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,065 | 2.08 | 24.48 | 28.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/livemesh-weight-based-shipping/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- Zombie WordPress options detected upon uninstall: 9 options
- can_compress_scripts
- fs_accounts
- theysaidso_admin_options
- fs_active_plugins
- fs_debug_mode
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: weight based shipping, woocommerce, woocommerce shipping, table rate shipping, conditional shipping
livemesh-weight-based-shipping/livemesh-weight-based-shipping.php 69% from 13 tests
The principal PHP file in "Weight Based Shipping For WooCommerce" v. 1.4 is loaded by WordPress automatically on each request
You should first fix the following items:
- Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
- Requires at least: The required version number must match the one declared in readme.txt ("5.5" instead of "5.2")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis 97% from 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 plugin38,539 lines of code in 211 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 179 | 9,208 | 17,796 | 36,326 |
CSS | 17 | 23 | 15 | 576 |
PO File | 1 | 229 | 332 | 537 |
Sass | 2 | 85 | 7 | 478 |
JavaScript | 9 | 94 | 84 | 406 |
Markdown | 1 | 68 | 0 | 214 |
SVG | 2 | 0 | 0 | 2 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
These items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 47.41 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.18 |
▷ 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,488 | |
▷ Static methods | 198 | 13.31% |
▷ Public methods | 1,090 | 73.25% |
▷ Protected methods | 18 | 1.21% |
▷ Private methods | 380 | 25.54% |
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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |