89% fish-and-ships

Code Review | Fish and Ships - Most flexible shipping method table rate. A WooCommerce conditional shipping rate

WordPress plugin Fish and Ships - Most flexible shipping method table rate. A WooCommerce conditional shipping rate scored89%from 54 tests.

About plugin

  • Plugin page: fish-and-ships
  • Plugin version: 1.4.16
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Mar 3, 2020
  • Latest release: Aug 28, 2023
  • Number of updates: 166
  • Update frequency: every 7.7 days
  • Top authors: wpcentrics (100%)

Code review

54 tests

User reviews

33 reviews

Install metrics

1,000+ active /32,421 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.67MB] [CPU: ▼8.30ms] Passed 4 tests

An overview of server-side resources used by Fish and Ships - Most flexible shipping method table rate. A WooCommerce conditional shipping rate
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.13 ▲0.6738.80 ▼3.22
Dashboard /wp-admin4.02 ▲0.6747.14 ▼36.12
Posts /wp-admin/edit.php4.07 ▲0.7155.44 ▲4.76
Add New Post /wp-admin/post-new.php6.55 ▲0.67109.29 ▲10.27
Media Library /wp-admin/upload.php3.88 ▲0.6543.81 ▲1.38

Server storage [IO: ▲3.05MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 141 new files
Database: no new tables, 7 new options
New WordPress options
fish-and-ships-woocommerce
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Fish and Ships - Most flexible shipping method table rate. A WooCommerce conditional shipping rate: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲6414.77 ▲0.461.58 ▼0.5941.34 ▼10.00
Dashboard /wp-admin2,216 ▲285.88 ▼0.02129.84 ▲11.8850.10 ▲9.05
Posts /wp-admin/edit.php2,098 ▲62.03 ▲0.0543.08 ▲5.1742.90 ▲8.50
Add New Post /wp-admin/post-new.php1,524 ▲523.22 ▲0.02744.46 ▲72.5953.72 ▲7.01
Media Library /wp-admin/upload.php1,398 ▲74.23 ▲0.03106.99 ▲3.3343.84 ▲1.14

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • fish-and-ships-woocommerce
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
Everything seems fine, however this is by no means an exhaustive 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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: shipping, table rate, conditional shipping, shipping rate, shipping method

fish-and-ships/fish-and-ships.php Passed 13 tests

Analyzing the main PHP file in "Fish and Ships - Most flexible shipping method table rate. A WooCommerce conditional shipping rate" version 1.4.16
129 characters long description:
A WooCommerce conditional table rate shipping method. Easy to understand and easy to use, it gives you an incredible flexibility.

Code Analysis 97% from 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 detected24,240 lines of code in 90 files:
LanguageFilesBlank linesComment linesLines of code
HTML5670111210,401
PO File71,7221,8625,566
PHP181,5481,7843,602
CSS4385863,160
JavaScript34522951,469
SVG10035
XML1007

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 112)
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity70.33
▷ Minimum class complexity1.00
▷ Maximum class complexity376.00
Average method complexity5.43
▷ Minimum method complexity1.00
▷ Maximum method complexity112.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods141
▷ Static methods21.42%
▷ Public methods141100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions1894.74%
▷ Anonymous functions15.26%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
32 PNG files occupy 1.54MB with 0.97MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
help/img/logs.png134.74KB54.35KB▼ 59.66%
help/img/min-max-new-2-euros.png12.98KB6.01KB▼ 53.70%
help/img/group-by-1b-mks.png26.15KB11.69KB▼ 55.29%
assets/img/bars-title.png3.99KB0.31KB▼ 92.23%
help/img/group-by-1.png25.54KB11.67KB▼ 54.29%