83% shipox-for-woocommerce

Code Review | Shipox

WordPress plugin Shipox scored83%from 54 tests.

About plugin

  • Plugin page: shipox-for-woocom...
  • Plugin version: 2.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.1.0
  • WordPress version: 6.3.1
  • First release: Jun 2, 2021
  • Latest release: Dec 8, 2022
  • Number of updates: 29
  • Update frequency: every 19.1 days
  • Top authors: shipox (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /1,260 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼9.70ms] Passed 4 tests

A check of server-side resources used by Shipox
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.65 ▼6.17
Dashboard /wp-admin3.31 ▼0.0452.12 ▼18.32
Posts /wp-admin/edit.php3.36 ▲0.0050.53 ▼7.81
Add New Post /wp-admin/post-new.php5.89 ▲0.00109.73 ▼6.49
Media Library /wp-admin/upload.php3.23 ▲0.0037.36 ▼2.16

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Shipox
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.22 ▼1.524.78 ▲2.8649.35 ▼4.26
Dashboard /wp-admin2,203 ▲155.83 ▼0.05117.26 ▼16.8446.23 ▼6.11
Posts /wp-admin/edit.php2,092 ▼32.01 ▲0.0039.98 ▼3.6935.35 ▼5.08
Add New Post /wp-admin/post-new.php1,519 ▲523.18 ▲5.70714.42 ▼38.8454.43 ▼8.28
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.07114.73 ▼20.6050.23 ▼7.32

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 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
The following issues need your attention
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/shipox-for-woocommerce/classes/class-shipox-shipping-method.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shipox-for-woocommerce/includes/inc-backend-actions.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shipox-for-woocommerce/classes/class-shipox-options.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shipox-for-woocommerce/includes/inc-frontend-actions.php:17

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)
Everything seems fine, but this is not an exhaustive test


Plugin configuration 83% 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
10 plugin tags: sync, products, shipox, shipping, woo commerce...

shipox-for-woocommerce/shipox.php 62% from 13 tests

The main PHP script in "Shipox" version 2.1.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("shipox-for-woocommerce.php" instead of "shipox.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Description: Please keep the plugin description shorter than 140 characters (currently 361 characters long)
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.6" instead of "4.4")
  • Domain Path: The domain path folder does not exist ("/i18n/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin2,789 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity15.36
▷ Minimum class complexity1.00
▷ Maximum class complexity87.00
Average method complexity3.11
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
▷ Abstract classes14.55%
▷ Concrete classes2195.45%
▷ Final classes14.76%
▷ Static methods42.67%
▷ Public methods14093.33%
▷ Protected methods00.00%
▷ Private methods106.67%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants1376.47%
▷ Class constants423.53%
▷ Public constants4100.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/logo.png1.15KB0.46KB▼ 60.19%