90% hb-hide-shipping-tiny-for-woocommerce

Code Review | 隱藏 Woocommerce 的運輸方式

WordPress plugin 隱藏 Woocommerce 的運輸方式 scored90%from 54 tests.

About plugin

  • Plugin page: hb-hide-shipping-...
  • Plugin version: 0.2.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.0
  • WordPress version: 6.3.1
  • First release: Aug 4, 2022
  • Latest release: Jul 15, 2023
  • Number of updates: 8
  • Update frequency: every 43.0 days
  • Top authors: heiblack (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /204 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0032.49 ▼6.98
Dashboard /wp-admin3.31 ▲0.0044.57 ▼6.63
Posts /wp-admin/edit.php3.36 ▲0.0044.88 ▼4.24
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.28 ▼8.42
Media Library /wp-admin/upload.php3.23 ▲0.0032.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.62 ▼0.791.79 ▲0.1244.85 ▼0.13
Dashboard /wp-admin2,206 ▲205.84 ▲0.9095.31 ▼13.2337.34 ▼6.75
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0238.42 ▼2.1235.10 ▲1.42
Add New Post /wp-admin/post-new.php1,530 ▲1118.26 ▼4.85629.61 ▲30.9962.23 ▲8.11
Media Library /wp-admin/upload.php1,388 ▲34.19 ▼0.0496.67 ▼3.8542.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:
LanguageFilesBlank linesComment linesLines of code
PHP1911199
CSS12018
JavaScript1108

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 code0.39
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods228.57%
▷ Protected methods00.00%
▷ Private methods571.43%
Functions9
▷ Named functions00.00%
▷ Anonymous functions9100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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