Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.23ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Freight Center
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.59 ▼2.34 |
Dashboard /wp-admin | 3.32 ▲0.02 | 52.03 ▲3.13 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 53.34 ▲0.52 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 90.39 ▼16.32 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.69 ▼2.77 |
Server storage [IO: ▲0.91MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for WooCommerce Freight Center
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.72 ▲0.37 | 1.91 ▼0.13 | 43.54 ▼2.57 |
Dashboard /wp-admin | 2,198 ▲21 | 5.63 ▼0.06 | 90.81 ▼1.00 | 39.95 ▼1.71 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.02 ▲0.07 | 39.04 ▲3.59 | 41.07 ▲3.45 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.01 ▼0.05 | 644.31 ▼22.43 | 70.46 ▲24.96 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.19 ▲0.08 | 95.38 ▼20.17 | 41.62 ▼6.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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 shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: woocommerce, shipping, ecommerce, freight
woocommerce-freight-shipping/woocommerce-freight-shipping.php 92% from 13 tests
"WooCommerce Freight Center" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress 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
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,826 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 766 | 818 | 1,796 |
JavaScript | 2 | 12 | 3 | 30 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 34.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 4.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 60 | |
▷ Static methods | 1 | 1.67% |
▷ Public methods | 60 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.62MB with 0.41MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-5.png | 83.35KB | 25.92KB | ▼ 68.90% |
assets/screenshot-3.png | 103.06KB | 32.07KB | ▼ 68.89% |
assets/icon_256x256.png | 34.73KB | 12.90KB | ▼ 62.87% |
assets/screenshot-1.png | 211.47KB | 69.39KB | ▼ 67.19% |
assets/screenshot-2.png | 192.74KB | 63.35KB | ▼ 67.13% |