89% wc-ship-est

Code Review | Ship Estimate for WooCommerce

WordPress plugin Ship Estimate for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: wc-ship-est
  • Plugin version: 1.4.26
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Apr 7, 2021
  • Latest release: Nov 29, 2023
  • Number of updates: 95
  • Update frequency: every 10.2 days
  • Top authors: rermis (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /5,899 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.20MB] [CPU: ▼4.23ms] Passed 4 tests

Analyzing server-side resources used by Ship Estimate for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2143.46 ▲4.06
Dashboard /wp-admin3.51 ▲0.2046.73 ▼5.10
Posts /wp-admin/edit.php3.62 ▲0.2649.15 ▼1.18
Add New Post /wp-admin/post-new.php6.09 ▲0.2081.65 ▼14.71
Media Library /wp-admin/upload.php3.43 ▲0.2037.24 ▲5.02
WC Ship Estimate /wp-admin/admin.php?page=wc-ship-est3.4041.35

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
wse_method_update
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Ship Estimate for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲4714.24 ▼0.481.61 ▼0.3642.27 ▼0.19
Dashboard /wp-admin2,214 ▲435.61 ▼0.0490.24 ▼0.1139.90 ▼0.95
Posts /wp-admin/edit.php2,119 ▲191.99 ▼0.0335.72 ▼3.6835.00 ▼1.97
Add New Post /wp-admin/post-new.php1,540 ▲1423.16 ▲0.26675.26 ▲52.0956.93 ▼5.18
Media Library /wp-admin/upload.php1,416 ▲164.20 ▲0.0198.63 ▲2.5643.39 ▲1.70
WC Ship Estimate /wp-admin/admin.php?page=wc-ship-est1,5392.1628.0244.84

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • wse_method_update
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 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
6 plugin tags: woocommerce, google customer reviews, ship date, ship estimate, backorder...

wc-ship-est/wse_functions.php 85% from 13 tests

The main PHP script in "Ship Estimate for WooCommerce" version 1.4.26 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wc-ship-est.php" instead of "wse_functions.php")
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.6" instead of "5.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin930 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP114437930

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions29
▷ Named functions2896.55%
▷ Anonymous functions13.45%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png8.74KB4.02KB▼ 53.97%