78% shipsys-milezmore-extension

Code Review | Shipsy’s Milezmore Extension

WordPress plugin Shipsy’s Milezmore Extension scored 78% from 54 tests.

About plugin

  • Plugin page: shipsys-milezmore...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8.1
  • WordPress version: 6.3.1
  • First release: Jan 5, 2022
  • Latest release: Jan 5, 2022
  • Number of updates: 4
  • Update frequency: every 1.3 days
  • Top authors: shipsyplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 232 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 gracefully, with no errors

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

This is a short check of server-side resources used by Shipsy’s Milezmore Extension
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0347.77 ▲8.84
Dashboard /wp-admin3.33 ▲0.0245.78 ▲0.72
Posts /wp-admin/edit.php3.38 ▲0.0243.85 ▼5.94
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.58 ▼15.89
Media Library /wp-admin/upload.php3.25 ▲0.0233.29 ▼4.62

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 35 new files
Database: 1 new table, 6 new options
New tables
wp_sync_track_order
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Shipsy’s Milezmore Extension
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.25 ▼1.311.77 ▼0.0044.26 ▼1.95
Dashboard /wp-admin2,209 ▲214.87 ▼0.0195.43 ▼11.4641.84 ▼1.40
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0236.74 ▼4.3434.00 ▼2.89
Add New Post /wp-admin/post-new.php1,535 ▼023.25 ▲0.06621.13 ▼65.4851.24 ▼14.66
Media Library /wp-admin/upload.php1,388 ▼34.30 ▼0.0298.88 ▼5.9442.01 ▼8.28

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/shipsys-milezmore-extension/public/partials/dtdc-econnect-public-display.php
    • > /wp-content/plugins/shipsys-milezmore-extension/admin/partials/dtdc-econnect-admin-display.php
  • 15× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function dtdcGetVirtualSeries() in wp-content/plugins/shipsys-milezmore-extension/admin/partials/ec-vseries.php:3
    • > PHP Warning
      include_once(): Failed opening 'DTDC_ECONNECT_PATHadmin/helper/helper.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/shipsys-milezmore-extension/admin/partials/ec-setup.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/shipsys-milezmore-extension/admin/partials/ec-sync-form.php:2
    • > PHP Warning
      Use of undefined constant DTDC_ECONNECT_PATH - assumed 'DTDC_ECONNECT_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/shipsys-milezmore-extension/admin/partials/ec-setup.php on line 2
    • > PHP Warning
      include_once(DTDC_ECONNECT_PATHadmin/helper/helper.php): failed to open stream: No such file or directory in wp-content/plugins/shipsys-milezmore-extension/admin/partials/ec-manage.php on line 3
    • > PHP Notice
      Undefined variable: tracking_items in wp-content/plugins/shipsys-milezmore-extension/templates/myaccount/view-order.php on line 2
    • > PHP Warning
      include_once(DTDC_ECONNECT_PATHadmin/helper/helper.php): failed to open stream: No such file or directory in wp-content/plugins/shipsys-milezmore-extension/admin/partials/ec-vseries.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function dtdcGetAwbNumber() in wp-content/plugins/shipsys-milezmore-extension/admin/partials/ec-manage.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function dtdcGetAddresses() in wp-content/plugins/shipsys-milezmore-extension/admin/partials/ec-setup.php: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-milezmore-extension/admin/partials/ec-setup.php on line 2

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)
No browser errors were detected

Optimizations

Plugin configuration 90% 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
3 plugin tags: ecommerce, milezmore, shipsy

shipsys-milezmore-extension/dtdc-econnect.php 77% from 13 tests

This is the main PHP file of "Shipsy’s Milezmore Extension" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("shipsys-milezmore-extension.php" instead of "dtdc-econnect.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
There were no executable files found in this plugin3,599 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP192435491,665
JavaScript62792581,254
CSS5022680

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 complexity5.71
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity1.82
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods40
▷ Static methods00.00%
▷ Public methods3587.50%
▷ Protected methods00.00%
▷ Private methods512.50%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin