10% shipsys-flowpl-extension

Code Review | Shipsy's FlowPL Extension

WordPress plugin Shipsy's FlowPL Extension scored10%from 54 tests.

About plugin

  • Plugin page: shipsys-flowpl-ex...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4.21+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9
  • WordPress version: 6.3.1
  • First release: Mar 28, 2022
  • Latest release: Mar 28, 2022
  • Number of updates: 4
  • Update frequency: every 0.7 days
  • Top authors: shipsyplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /201 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)

Server metrics [RAM: ▲0.02MB] [CPU: ▼10.89ms] Passed 4 tests

Server-side resources used by Shipsy's FlowPL Extension
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.87 ▼4.29
Dashboard /wp-admin3.33 ▼0.0144.46 ▼19.81
Posts /wp-admin/edit.php3.38 ▲0.0345.88 ▼0.72
Add New Post /wp-admin/post-new.php5.91 ▲0.0388.68 ▼18.68
Media Library /wp-admin/upload.php3.25 ▲0.0334.12 ▼0.76

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 42 new files
Database: 1 new table, 6 new options
New tables
wp_sync_track_order
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Shipsy's FlowPL Extension: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.38 ▼0.811.72 ▼0.0941.88 ▼0.26
Dashboard /wp-admin2,206 ▲144.84 ▼0.11108.21 ▼4.9837.79 ▼3.43
Posts /wp-admin/edit.php2,086 ▼62.02 ▼0.0239.78 ▲1.2335.06 ▲4.35
Add New Post /wp-admin/post-new.php1,533 ▲1923.19 ▼0.39641.53 ▼116.0450.52 ▼4.06
Media Library /wp-admin/upload.php1,388 ▼34.24 ▲0.0298.62 ▼9.1840.14 ▼4.38

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/shipsys-flowpl-extension/public/partials/dtdc-econnect-public-display.php
    • > /wp-content/plugins/shipsys-flowpl-extension/admin/partials/dtdc-econnect-admin-display.php
  • 26× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Warning
      include_once(): Failed opening 'DTDC_ECONNECT_PATHadmin/helper/helper.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/shipsys-flowpl-extension/admin/apis/js-shipping-address-helper-api.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function shipsySanitizeArray() in wp-content/plugins/shipsys-flowpl-extension/admin/apis/js-shipping-address-helper-api.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/shipsys-flowpl-extension/admin/partials/ec-sync-form.php:5
    • > PHP Fatal error
      require_once(): Failed opening required 'DTDC_ECONNECT_PATHadmin/helper/helper.php' (include_path='.:/usr/share/php') in wp-content/plugins/shipsys-flowpl-extension/admin/partials/ec-setup.php on line 2
    • > PHP Fatal error
      require(): Failed opening required 'DTDC_ECONNECT_PATHconfig/settings.php' (include_path='.:/usr/share/php') in wp-content/plugins/shipsys-flowpl-extension/admin/apis/js-endpoint-helper-api.php on line 3
    • > PHP Fatal error
      require_once(): Failed opening required 'DTDC_ECONNECT_PATHadmin/helper/helper.php' (include_path='.:/usr/share/php') in wp-content/plugins/shipsys-flowpl-extension/admin/partials/ec-vseries.php on line 2
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/shipsys-flowpl-extension/utils/db/class-shipsydbconnector.php on line 3
    • > PHP Warning
      include_once(DTDC_ECONNECT_PATHadmin/helper/helper.php): failed to open stream: No such file or directory in wp-content/plugins/shipsys-flowpl-extension/admin/apis/js-addresses-helper-api.php on line 3
    • > PHP Warning
      require_once(DTDC_ECONNECT_PATHadmin/helper/helper.php): failed to open stream: No such file or directory in wp-content/plugins/shipsys-flowpl-extension/admin/partials/ec-setup.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function dtdcGetAddresses() in wp-content/plugins/shipsys-flowpl-extension/admin/apis/js-addresses-helper-api.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: ecommerce, shipsy, flowpl

shipsys-flowpl-extension/dtdc-econnect.php 85% from 13 tests

The main file in "Shipsy's FlowPL Extension" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("shipsys-flowpl-extension.php" instead of "dtdc-econnect.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected4,095 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
PHP253117032,103
JavaScript62862601,312
CSS5022680

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity6.25
▷ Minimum class complexity1.00
▷ Maximum class complexity31.00
Average method complexity1.79
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods52
▷ Static methods11.92%
▷ Public methods4586.54%
▷ Protected methods00.00%
▷ Private methods713.46%
Functions27
▷ Named functions27100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG files were detected