83% sideup-ksa

Code Review | SIDEUP Shipping for WooCommerce

WordPress plugin SIDEUP Shipping for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: sideup-ksa
  • Plugin version: 1.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Jan 7, 2023
  • Latest release: Jan 7, 2023
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: voo2021 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /432 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.08MB] [CPU: ▼15.33ms] Passed 4 tests

A check of server-side resources used by SIDEUP Shipping for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.19 ▼7.91
Dashboard /wp-admin3.32 ▼0.0350.06 ▼20.34
Posts /wp-admin/edit.php3.05 ▼0.3128.43 ▼20.57
Add New Post /wp-admin/post-new.php5.90 ▲0.0197.79 ▼3.78
Media Library /wp-admin/upload.php3.24 ▲0.0130.73 ▼12.49

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
recovery_mode_email_last_sent

Browser metrics Passed 4 tests

SIDEUP Shipping for WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.72 ▲0.141.91 ▼0.2239.72 ▼7.75
Dashboard /wp-admin2,209 ▲355.57 ▼0.0185.49 ▼24.3580.31 ▲34.24
Posts /wp-admin/edit.php46 ▼2,0540.42 ▼1.530.08 ▼37.6612.77 ▼20.15
Add New Post /wp-admin/post-new.php1,565 ▲3418.02 ▼4.94607.45 ▼64.65104.23 ▲49.10
Media Library /wp-admin/upload.php1,417 ▲204.13 ▼0.0897.63 ▼25.9172.44 ▲24.13

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • recovery_mode_email_last_sent
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/sideup-ksa/sideup-woocommerce.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Donate link: Invalid url: ""
The official readme.txt is a good inspiration

sideup-ksa/sideup-woocommerce.php 77% from 13 tests

The principal PHP file in "SIDEUP Shipping for WooCommerce" v. 1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Domain Path: The domain path folder was not found ("/languages")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("sideup-ksa.php" instead of "sideup-woocommerce.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected975 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP25260467
JavaScript33629435
SVG42071
CSS2062

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 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%
assets/images/sideup.png8.49KB5.38KB▼ 36.65%