83% automated-dropshipping-for-woocommerce

Code Review | Dropship Express

WordPress plugin Dropship Express scored83%from 54 tests.

About plugin

  • Plugin page: automated-dropshi...
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.7
  • WordPress version: 6.3.1
  • First release: Dec 30, 2020
  • Latest release: Jan 10, 2022
  • Number of updates: 20
  • Update frequency: every 18.8 days
  • Top authors: jackjohansson (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,577 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.28ms] Passed 4 tests

A check of server-side resources used by Dropship Express
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.76 ▼2.02
Dashboard /wp-admin3.31 ▲0.0043.72 ▼7.67
Posts /wp-admin/edit.php3.36 ▲0.0042.40 ▼5.97
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.33 ▼5.44
Media Library /wp-admin/upload.php3.23 ▲0.0033.79 ▼0.87

Server storage [IO: ▲12.93MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 1,800 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Dropship Express
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.60 ▼0.631.92 ▲0.3643.82 ▲3.85
Dashboard /wp-admin2,203 ▲125.83 ▲0.9495.82 ▼8.9438.34 ▼7.44
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0037.10 ▼5.3536.18 ▼1.76
Add New Post /wp-admin/post-new.php1,514 ▼823.49 ▲0.49640.18 ▲19.2255.80 ▼0.82
Media Library /wp-admin/upload.php1,388 ▼34.20 ▲0.0394.88 ▼1.0941.42 ▼2.01

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
  • 33× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'DSE_Import' not found in wp-content/plugins/automated-dropshipping-for-woocommerce/templates/admin/import-rules/aliexpress.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/automated-dropshipping-for-woocommerce/templates/admin/tabs-content/vip.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/automated-dropshipping-for-woocommerce/templates/admin/tabs-content/lowes.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/automated-dropshipping-for-woocommerce/templates/admin/tabs-content/aliexpress.php:17
    • > PHP Warning
      include(TopSdk.php): failed to open stream: No such file or directory in wp-content/plugins/automated-dropshipping-for-woocommerce/assets/vendors/sdk/aliexpress/top/test.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/automated-dropshipping-for-woocommerce/templates/admin/tabs-content/amazon.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/automated-dropshipping-for-woocommerce/templates/admin/import-rules/ebay.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/automated-dropshipping-for-woocommerce/templates/admin/import-rules/homedepot.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/automated-dropshipping-for-woocommerce/templates/admin/tabs-content/ebay.php:9
    • > PHP Warning
      include(): Failed opening 'TopSdk.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/automated-dropshipping-for-woocommerce/assets/vendors/sdk/aliexpress/top/fileTest.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 17 tag instead of maximum 10
Please take inspiration from this readme.txt

automated-dropshipping-for-woocommerce/index.php 69% from 13 tests

The entry point to "Dropship Express" version 1.1.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • 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
  • Requires PHP: Required version must be the same as the one declared in readme.txt ("7.0" instead of "7.2")
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.7" instead of "3.0.0")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("automated-dropshipping-for-woocommerce.php" instead of "index.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
Everything looks great! No dangerous files found in this plugin67,326 lines of code in 1,741 files:
LanguageFilesBlank linesComment linesLines of code
SVG1,52222717,503
PHP1132,9795,19413,928
CSS234,29211712,498
JavaScript248963828,541
PO File171,4491,9934,842
Sass18505344,584
LESS18502554,543
Markdown52060832
JSON10055

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.35
Average class complexity21.49
▷ Minimum class complexity1.00
▷ Maximum class complexity238.00
Average method complexity3.39
▷ Minimum method complexity1.00
▷ Maximum method complexity83.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes71
▷ Abstract classes00.00%
▷ Concrete classes71100.00%
▷ Final classes00.00%
Methods622
▷ Static methods14623.47%
▷ Public methods54787.94%
▷ Protected methods345.47%
▷ Private methods416.59%
Functions6
▷ Named functions466.67%
▷ Anonymous functions233.33%
Constants19
▷ Global constants1578.95%
▷ Class constants421.05%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin