67% automate-dropshipping-for-b2bdropshipperwwtech

Code Review | Automate Dropshipping for B2BDropshipper(WWTech)

WordPress plugin Automate Dropshipping for B2BDropshipper(WWTech) scored67%from 54 tests.

About plugin

  • Plugin page: automate-dropship...
  • Plugin version: 3.0.7
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 25, 2020
  • Latest release: Feb 2, 2021
  • Number of updates: 57
  • Update frequency: every 5.5 days
  • Top authors: midriff (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,773 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Automate Dropshipping for B2BDropshipper(WWTech)
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.93 ▲0.4748.14 ▲4.73
Dashboard /wp-admin3.86 ▲0.5154.95 ▼8.52
Posts /wp-admin/edit.php3.91 ▲0.5557.30 ▲7.30
Add New Post /wp-admin/post-new.php6.37 ▲0.49101.04 ▼4.59
Media Library /wp-admin/upload.php3.72 ▲0.4941.57 ▲4.68
Help /wp-admin/admin.php?page=klock-help3.7149.95
General Settings /wp-admin/admin.php?page=klock-general3.6837.45
Payment /wp-admin/admin.php?page=payment-setting3.6639.14
API Settings /wp-admin/admin.php?page=klockjatten-menu3.6839.14
Brand Names /wp-admin/admin.php?page=brand-name-menu3.6939.93

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Automate Dropshipping for B2BDropshipper(WWTech)
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,861 ▲10014.79 ▲0.361.84 ▲0.0244.40 ▲4.51
Dashboard /wp-admin2,264 ▲675.80 ▼0.0598.19 ▼21.5040.22 ▼8.58
Posts /wp-admin/edit.php2,149 ▲522.02 ▲0.0240.44 ▲4.3437.60 ▲2.04
Add New Post /wp-admin/post-new.php1,574 ▲4318.55 ▼4.96601.33 ▼65.5050.82 ▼11.86
Media Library /wp-admin/upload.php1,446 ▲434.31 ▲0.13101.57 ▲2.8443.45 ▼3.09
Help /wp-admin/admin.php?page=klock-help1,2381.7126.2037.78
General Settings /wp-admin/admin.php?page=klock-general1,0891.8326.4854.36
Payment /wp-admin/admin.php?page=payment-setting7101.536.5723.62
API Settings /wp-admin/admin.php?page=klockjatten-menu1,0782.0224.2142.13
Brand Names /wp-admin/admin.php?page=brand-name-menu8291.8929.8927.82

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'klock_uninstall' not found or invalid function name
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      Use of undefined constant KLOCK_VERSION - assumed 'KLOCK_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/automate-dropshipping-for-b2bdropshipperwwtech/automate-help.php on line 29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/automate-dropshipping-for-b2bdropshipperwwtech/settings.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/automate-dropshipping-for-b2bdropshipperwwtech/brand-name.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/automate-dropshipping-for-b2bdropshipperwwtech/general-settings.php:173
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/automate-dropshipping-for-b2bdropshipperwwtech/payment-page.php:168
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/automate-dropshipping-for-b2bdropshipperwwtech/automate-help.php:47
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/automate-dropshipping-for-b2bdropshipperwwtech/automate-functions.php:6

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=brand-name-menu
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=brand-name-menu 0:0 Uncaught SyntaxError: Unexpected end of JSON input

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 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
Please fix the following attributes: You can look at the official readme.txt

automate-dropshipping-for-b2bdropshipperwwtech/automate-dropshipping.php 77% from 13 tests

The main file in "Automate Dropshipping for B2BDropshipper(WWTech)" v. 3.0.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 146 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("automate-dropshipping-for-b2bdropshipperwwtech.php" instead of "automate-dropshipping.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
Success! There were no dangerous files found in this plugin6,451 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP11461743,120
SVG1002,671
CSS31622658
JavaScript2012

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity19.56
▷ Minimum class complexity1.00
▷ Maximum class complexity90.00
Average method complexity4.21
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods52
▷ Static methods11.92%
▷ Public methods5096.15%
▷ Protected methods00.00%
▷ Private methods23.85%
Functions29
▷ Named functions29100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
1 PNG file occupies 0.33MB with 0.22MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/screenshot-2.png337.55KB114.79KB▼ 65.99%