78% dropshipping-xox

Code Review | Dropshix

WordPress plugin Dropshix scored78%from 54 tests.

About plugin

  • Plugin page: dropshipping-xox
  • Plugin version: 4.0.14
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-5.0.2
  • WordPress version: 6.3.1
  • First release: Aug 2, 2017
  • Latest release: Jun 18, 2019
  • Number of updates: 100
  • Update frequency: every 6.9 days
  • Top authors: dedong (100%)Otto42 (2%)

Code review

54 tests

User reviews

9 reviews

Install metrics

40+ active /32,414 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.45MB] [CPU: ▼7.42ms] Passed 4 tests

Analyzing server-side resources used by Dropshix
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.95 ▲0.4941.29 ▲0.46
Dashboard /wp-admin3.79 ▲0.4551.21 ▼14.76
Posts /wp-admin/edit.php3.84 ▲0.4954.13 ▼0.00
Add New Post /wp-admin/post-new.php6.33 ▲0.4597.62 ▼15.37
Media Library /wp-admin/upload.php3.65 ▲0.4240.42 ▲6.00

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 202 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Dropshix
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,920 ▲17413.80 ▼0.575.73 ▲3.7240.95 ▼2.78
Dashboard /wp-admin2,243 ▲374.98 ▲0.07103.77 ▼5.7340.25 ▼0.95
Posts /wp-admin/edit.php2,125 ▲252.26 ▲0.2138.75 ▼0.9433.97 ▼3.48
Add New Post /wp-admin/post-new.php1,553 ▲2718.36 ▲0.85614.78 ▼15.3258.12 ▲1.06
Media Library /wp-admin/upload.php1,419 ▲194.38 ▲0.17106.73 ▲2.5247.14 ▼1.45

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

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)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/dropshipping-xox/public/partials/dropshipping-xox-public-display.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/dropshipping-xox/dropshipping-xox-config.php on line 36

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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 is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: woocommerce, banggood, aliexpress, dropshipping tool, ecommerce...

dropshipping-xox/dropshipping-xox.php 85% from 13 tests

The principal PHP file in "Dropshix" v. 4.0.14 is loaded by WordPress automatically on each request
The following require your attention:
  • 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
  • Requires at least: Required version must match the one declared in readme.txt ("4.0" instead of "3.5.1")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected43,511 lines of code in 155 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript587,37618,29426,859
CSS7821424913,386
PHP153907702,843
SVG100288
Sass2272134
Markdown1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity26.67
▷ Minimum class complexity1.00
▷ Maximum class complexity140.00
Average method complexity3.41
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods96
▷ Static methods22.08%
▷ Public methods8184.38%
▷ Protected methods00.00%
▷ Private methods1515.62%
Functions47
▷ Named functions47100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.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
8 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/js/DataTables/DataTables-1.10.16/images/sort_both.png0.20KB0.29KB0.00%
admin/js/DataTables/DataTables-1.10.16/images/sort_desc.png0.15KB0.25KB0.00%
admin/js/DataTables/DataTables-1.10.16/images/sort_asc_disabled.png0.14KB0.25KB0.00%
admin/js/DataTables/DataTables-1.10.16/images/sort_asc.png0.16KB0.25KB0.00%
admin/css/fancybox/fancybox_sprite@2x.png6.40KB5.76KB▼ 9.96%