84% ziticity-shipping-for-woocommerce

Code Review | ZITICITY shipping extension for WooCommerce

WordPress plugin ZITICITY shipping extension for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: ziticity-shipping...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.0
  • WordPress version: 6.3.1
  • First release: Nov 23, 2020
  • Latest release: Jun 27, 2022
  • Number of updates: 18
  • Update frequency: every 32.4 days
  • Top authors: ziticity (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,395 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.14MB] [CPU: ▼8.24ms] Passed 4 tests

Analyzing server-side resources used by ZITICITY shipping extension for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0641.92 ▼2.23
Dashboard /wp-admin3.35 ▲0.0446.10 ▼5.62
Posts /wp-admin/edit.php3.40 ▲0.0449.43 ▲5.70
Add New Post /wp-admin/post-new.php5.18 ▼0.7162.15 ▼29.99
Media Library /wp-admin/upload.php3.27 ▲0.0440.15 ▲4.87

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 26 new files
Database: 1 new table, 8 new options
New tables
wp_ziticity_parcel_lockers
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
wc_shipping_ziticity_db_version
recovery_mode_email_last_sent
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

ZITICITY shipping extension for WooCommerce: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲14813.87 ▼0.429.59 ▲7.6242.21 ▼1.00
Dashboard /wp-admin2,203 ▲156.01 ▲0.0498.85 ▼13.4839.63 ▼6.76
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0034.66 ▼2.0530.12 ▼3.58
Add New Post /wp-admin/post-new.php45 ▼1,4970.44 ▼22.670.08 ▼657.209.38 ▼42.83
Media Library /wp-admin/upload.php1,382 ▼64.17 ▼0.0399.74 ▼11.9074.09 ▲24.10

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • recovery_mode_email_last_sent
    • widget_recent-posts
    • wc_shipping_ziticity_db_version
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/ziticity-shipping-for-woocommerce/includes/class-wc-shipping-ziticity.php:3

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 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: ziticity, woocommerce, shipping, delivery, packages...

ziticity-shipping-for-woocommerce/woocommerce-shipping-ziticity.php 92% from 13 tests

The entry point to "ZITICITY shipping extension for WooCommerce" version 1.1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ziticity-shipping-for-woocommerce.php" instead of "woocommerce-shipping-ziticity.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
No dangerous file extensions were detected1,671 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP143886361,427
PO File16670187
JavaScript2112736
CSS25421

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity25.78
▷ Minimum class complexity1.00
▷ Maximum class complexity111.00
Average method complexity4.42
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods68
▷ Static methods1217.65%
▷ Public methods4870.59%
▷ Protected methods00.00%
▷ Private methods2029.41%
Functions8
▷ Named functions450.00%
▷ Anonymous functions450.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin