Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.57ms] Passed 4 tests
Server-side resources used by 隱藏 Woocommerce 的運輸方式
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 32.49 ▼6.98 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.57 ▼6.63 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.88 ▼4.24 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.28 ▼8.42 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.93 ▼3.28 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
隱藏 Woocommerce 的運輸方式: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.62 ▼0.79 | 1.79 ▲0.12 | 44.85 ▼0.13 |
Dashboard /wp-admin | 2,206 ▲20 | 5.84 ▲0.90 | 95.31 ▼13.23 | 37.34 ▼6.75 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.02 | 38.42 ▼2.12 | 35.10 ▲1.42 |
Add New Post /wp-admin/post-new.php | 1,530 ▲11 | 18.26 ▼4.85 | 629.61 ▲30.99 | 62.23 ▲8.11 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.19 ▼0.04 | 96.67 ▼3.85 | 42.98 ▲1.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means 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
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 Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
1 plugin tags: shipping
hb-hide-shipping-tiny-for-woocommerce/hb-hide-shipping-tiny-for-woocommerce.php Passed 13 tests
The main PHP script in "隱藏 Woocommerce 的運輸方式" version 0.2.0 is automatically included on every request by WordPress
39 characters long description:
A HB Hide Shipping Tiny For Woocommerce
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected225 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 9 | 11 | 199 |
CSS | 1 | 2 | 0 | 18 |
JavaScript | 1 | 1 | 0 | 8 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 27.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 28.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 71.43% |
Functions | 9 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 9 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin