89% voo-shipping

Code Review | SIDEUP EG Shipping for WooCommerce

WordPress plugin SIDEUP EG Shipping for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: voo-shipping
  • Plugin version: 1.9
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 6.3.1
  • First release: Feb 24, 2021
  • Latest release: Nov 28, 2022
  • Number of updates: 23
  • Update frequency: every 27.9 days
  • Top authors: voo2021 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,020 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼8.82ms] Passed 4 tests

A check of server-side resources used by SIDEUP EG Shipping for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0845.07 ▲3.96
Dashboard /wp-admin3.38 ▲0.0853.44 ▲1.51
Posts /wp-admin/edit.php3.11 ▼0.2425.88 ▼27.68
Add New Post /wp-admin/post-new.php5.96 ▲0.0891.06 ▼9.40
Media Library /wp-admin/upload.php3.30 ▲0.0835.95 ▲0.30

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
recovery_mode_email_last_sent
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for SIDEUP EG Shipping for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲4614.12 ▼0.581.68 ▼0.2345.28 ▲2.09
Dashboard /wp-admin2,204 ▲245.52 ▼0.1591.28 ▼1.1258.28 ▲14.51
Posts /wp-admin/edit.php45 ▼2,0580.42 ▼1.580.09 ▼41.0610.76 ▼24.47
Add New Post /wp-admin/post-new.php1,559 ▲3323.18 ▲0.17760.67 ▲21.1055.37 ▼2.33
Media Library /wp-admin/upload.php1,412 ▲124.23 ▲0.08103.76 ▼3.1769.40 ▲25.17

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • recovery_mode_email_last_sent
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • Donate link: Please fix this invalid URI: ""
The official readme.txt might help

voo-shipping/sideup-woocommerce.php 77% from 13 tests

The main PHP script in "SIDEUP EG Shipping for WooCommerce" version 1.9 is automatically included on every request by WordPress
You should first fix the following items:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("voo-shipping.php" instead of "sideup-woocommerce.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Everything looks great! No dangerous files found in this plugin894 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP25140457
JavaScript31210364
SVG42071
CSS2062

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/sideup-icon.png0.85KB0.70KB▼ 18.14%
assets/images/refresh.png19.03KB8.83KB▼ 53.61%