Benchmarks
Plugin footprint 65% 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: ▲5.14MB] [CPU: ▲19.33ms] 75% from 4 tests
Analyzing server-side resources used by Free Shipping Label and Progress Bar for WooCommerce
It is recommended to improve the following
- Extra RAM: The extra memory usage should kept under 5MB (currently 5.14MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.01 ▲5.55 | 63.77 ▲21.94 |
Dashboard /wp-admin | 9.03 ▲5.73 | 80.58 ▲30.38 |
Posts /wp-admin/edit.php | 9.03 ▲5.68 | 69.22 ▲23.66 |
Add New Post /wp-admin/post-new.php | 9.48 ▲3.59 | 102.90 ▲1.78 |
Media Library /wp-admin/upload.php | 9.03 ▲5.80 | 64.73 ▲29.94 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 9.03 | 59.84 |
Server storage [IO: ▲3.29MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 204 new files
Database: no new tables, 13 new options
New WordPress options |
---|
devnet_fsl_bar |
fs_active_plugins |
devnet_fsl |
db_upgraded |
fs_accounts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Free Shipping Label and Progress Bar for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲75 | 13.63 ▼0.75 | 1.73 ▼0.07 | 29.51 ▼15.86 |
Dashboard /wp-admin | 2,227 ▲39 | 5.80 ▼0.07 | 98.41 ▼20.96 | 41.75 ▼8.69 |
Posts /wp-admin/edit.php | 2,113 ▲27 | 2.03 ▲0.01 | 35.57 ▲0.43 | 35.53 ▼1.70 |
Add New Post /wp-admin/post-new.php | 1,523 ▼10 | 22.96 ▼0.18 | 608.12 ▼42.93 | 52.46 ▼13.08 |
Media Library /wp-admin/upload.php | 1,412 ▲21 | 4.25 ▲0.04 | 98.58 ▼1.68 | 46.83 ▲3.66 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,084 | 1.84 | 28.25 | 34.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/free-shipping-label/fs/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 13 options in the database
- widget_recent-posts
- devnet_fsl
- theysaidso_admin_options
- devnet_fsl_label
- devnet_fsl_bar
- widget_recent-comments
- can_compress_scripts
- devnet_fsl_general
- fs_debug_mode
- fs_accounts
- ...
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: There are too many tags (12 tag instead of maximum 10)
free-shipping-label/free-shipping-label.php 92% from 13 tests
This is the main PHP file of "Free Shipping Label and Progress Bar for WooCommerce" version 2.6.13, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("5.5" instead of "3.5.1")
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
There were no executable files found in this plugin35,297 lines of code in 157 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 135 | 8,338 | 17,971 | 35,082 |
JavaScript | 6 | 36 | 69 | 199 |
CSS | 16 | 0 | 0 | 16 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 78.77 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 61 | |
▷ Abstract classes | 2 | 3.28% |
▷ Concrete classes | 59 | 96.72% |
▷ Final classes | 0 | 0.00% |
Methods | 1,359 | |
▷ Static methods | 220 | 16.19% |
▷ Public methods | 963 | 70.86% |
▷ Protected methods | 17 | 1.25% |
▷ Private methods | 379 | 27.89% |
Functions | 109 | |
▷ Named functions | 104 | 95.41% |
▷ Anonymous functions | 5 | 4.59% |
Constants | 148 | |
▷ Global constants | 101 | 68.24% |
▷ Class constants | 47 | 31.76% |
▷ 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 |
fs/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
fs/freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |