68% shiptimize-for-woocommerce

Code Review | Shiptimize for WooCommerce

WordPress plugin Shiptimize for WooCommerce scored68%from 54 tests.

About plugin

  • Plugin page: shiptimize-for-wo...
  • Plugin version: 3.1.71
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.2
  • WordPress version: 6.3.1
  • First release: Mar 23, 2019
  • Latest release: Jun 23, 2023
  • Number of updates: 136
  • Update frequency: every 11.4 days
  • Top authors: shiptimizeplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /12,197 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.84MB] [CPU: ▼0.92ms] Passed 4 tests

Analyzing server-side resources used by Shiptimize for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.33 ▲0.8746.85 ▲3.48
Dashboard /wp-admin4.15 ▲0.8453.02 ▼2.53
Posts /wp-admin/edit.php4.20 ▲0.8460.71 ▲3.09
Add New Post /wp-admin/post-new.php6.73 ▲0.8490.09 ▼7.73
Media Library /wp-admin/upload.php4.07 ▲0.8451.53 ▲15.17

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 87 new files
Database: 2 new tables, 8 new options
New tables
wp_shiptimize_marketplace_order
wp_shiptimize
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
shiptimize_db_version
widget_recent-posts
shiptimize_app_version

Browser metrics Passed 4 tests

Shiptimize 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,830 ▲4414.35 ▼0.011.79 ▼0.4440.73 ▼1.53
Dashboard /wp-admin2,198 ▲185.54 ▼0.0790.92 ▼3.1740.11 ▲0.23
Posts /wp-admin/edit.php2,104 ▲12.02 ▲0.0739.30 ▼2.5137.30 ▼0.36
Add New Post /wp-admin/post-new.php1,532 ▼523.24 ▲4.98673.58 ▲43.3155.40 ▼10.82
Media Library /wp-admin/upload.php1,400 ▼04.24 ▼0.0798.23 ▼14.4741.22 ▼4.40

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie tables detected upon uninstall: 2 tables
    • wp_shiptimize_marketplace_order
    • wp_shiptimize
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • shiptimize_db_version
    • shiptimize_app_version

Smoke tests 50% 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/shiptimize-for-woocommerce/index.php
  • 19× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Warning
      require_once(SHIPTIMIZE_PLUGIN_PATH/includes/admin/class-shiptimize-order-ui.php): failed to open stream: No such file or directory in wp-content/plugins/shiptimize-for-woocommerce/includes/plugins/class-shiptimize-dokan.php on line 3
    • > PHP Warning
      include_once(): Failed opening 'SHIPTIMIZE_PLUGIN_PATH/includes/core/class-shiptimize-api-v3.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/shiptimize-for-woocommerce/includes/admin/class-shiptimize-options-ui.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'ShiptimizeOptionsUI' not found in wp-content/plugins/shiptimize-for-woocommerce/includes/admin/class-shiptimize-options-ui-default.php:4
    • > PHP Warning
      include_once(SHIPTIMIZE_PLUGIN_PATH/includes/core/class-shiptimize-api-v3.php): failed to open stream: No such file or directory in wp-content/plugins/shiptimize-for-woocommerce/includes/admin/class-shiptimize-options-ui.php on line 3
    • > PHP Warning
      Use of undefined constant SHIPTIMIZE_PLUGIN_PATH - assumed 'SHIPTIMIZE_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/shiptimize-for-woocommerce/includes/admin/class-shiptimize-options-ui-default.php on line 2
    • > PHP Warning
      include_once(): Failed opening 'SHIPTIMIZE_PLUGIN_PATH/includes/admin/class-shiptimize-options-ui.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/shiptimize-for-woocommerce/includes/admin/class-shiptimize-options-ui-default.php on line 2
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/shiptimize-for-woocommerce/includes/plugins/class-shiptimize-wcfm.php on line 2
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-includes/pluggable.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/shiptimize-for-woocommerce/includes/plugins/class-shiptimize-wcfm.php on line 2
    • > PHP Fatal error
      require_once(): Failed opening required 'SHIPTIMIZE_PLUGIN_PATH/includes/class-woo-shiptimize-order.php' (include_path='.:/usr/share/php') in wp-content/plugins/shiptimize-for-woocommerce/includes/admin/class-shiptimize-order-ui.php on line 3
    • > PHP Warning
      Use of undefined constant SHIPTIMIZE_PLUGIN_PATH - assumed 'SHIPTIMIZE_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/shiptimize-for-woocommerce/includes/plugins/class-shiptimize-dokan.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes: The official readme.txt might help

shiptimize-for-woocommerce/shiptimize.php 85% from 13 tests

Analyzing the main PHP file in "Shiptimize for WooCommerce" version 3.1.71
Please make the necessary changes and fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.9" instead of "3.0.0")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("shiptimize-for-woocommerce.php" instead of "shiptimize.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected8,103 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
PHP231,5542,0596,516
CSS3205451,035
SVG805279
JavaScript73530183
PO File3121690

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity62.21
▷ Minimum class complexity9.00
▷ Maximum class complexity156.00
Average method complexity3.53
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes428.57%
▷ Concrete classes1071.43%
▷ Final classes00.00%
Methods357
▷ Static methods4713.17%
▷ Public methods32089.64%
▷ Protected methods205.60%
▷ Private methods174.76%
Functions10
▷ Named functions330.00%
▷ Anonymous functions770.00%
Constants11
▷ Global constants11100.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
29 PNG files occupy 0.14MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/markers/30_2.png3.33KB1.93KB▼ 42.07%
assets/images/markers/60.png3.41KB1.92KB▼ 43.73%
assets/images/markers/45.png4.77KB2.28KB▼ 52.25%
assets/images/markers/54.png4.84KB2.54KB▼ 47.39%
assets/images/markers/selected.png15.54KB0.79KB▼ 94.91%