84% wp-dropstream

Code Review | DropStream - Automated eCommerce Fulfillment

WordPress plugin DropStream - Automated eCommerce Fulfillment scored84%from 54 tests.

About plugin

  • Plugin page: wp-dropstream
  • Plugin version: 1.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 6.3.1
  • First release: Mar 9, 2013
  • Latest release: Jul 22, 2022
  • Number of updates: 84
  • Update frequency: every 40.8 days
  • Top authors: karlfalconer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /8,190 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼1.39ms] Passed 4 tests

A check of server-side resources used by DropStream - Automated eCommerce Fulfillment
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.29 ▲3.08
Dashboard /wp-admin3.34 ▲0.0346.39 ▼2.01
Posts /wp-admin/edit.php3.39 ▲0.0346.14 ▲1.07
Add New Post /wp-admin/post-new.php5.92 ▲0.0389.45 ▼4.55
Media Library /wp-admin/upload.php3.26 ▲0.0334.47 ▼0.07

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

DropStream - Automated eCommerce Fulfillment: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.25 ▼0.961.68 ▼0.1247.37 ▲8.82
Dashboard /wp-admin2,206 ▲185.79 ▲0.92101.86 ▼3.3039.80 ▼2.47
Posts /wp-admin/edit.php2,089 ▲212.00 ▼0.0236.47 ▲2.0235.32 ▲0.96
Add New Post /wp-admin/post-new.php1,520 ▼2223.48 ▲0.16629.62 ▼43.8649.60 ▲0.82
Media Library /wp-admin/upload.php1,391 ▲34.21 ▼0.0196.41 ▲0.1140.68 ▼2.69

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% 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)
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
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-dropstream/inc/adapters/wp_e_commerce.php on line 4
    • > PHP Fatal error
      require_once(): Failed opening required 'WP_PLUGIN_DIR/wp-e-commerce/wpsc-core/wpsc-constants.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-dropstream/inc/adapters/wp_e_commerce.php on line 4
    • > PHP Warning
      require_once(WP_PLUGIN_DIR/wp-e-commerce/wpsc-core/wpsc-constants.php): failed to open stream: No such file or directory in wp-content/plugins/wp-dropstream/inc/adapters/wp_e_commerce.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-dropstream/wp-dropstream.php:207

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Support multiple sales channels including Amazon Marketplace, and eBay), #2 (Paid orders are automatically sent to your fulfillment center), #3 (Orders are accurate every time), #4 (Tracking numbers are automatically sent back to your shopping cart)
You can take inspiration from this readme.txt

wp-dropstream/wp-dropstream.php Passed 13 tests

The main file in "DropStream - Automated eCommerce Fulfillment" v. 1.2.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
34 characters long description:
A brief description of the Plugin.

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
No dangerous file extensions were detected458 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP413025458

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity13.50
▷ Minimum class complexity1.00
▷ Maximum class complexity28.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods30
▷ Static methods723.33%
▷ Public methods2273.33%
▷ Protected methods00.00%
▷ Private methods826.67%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.70MB with 0.47MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png21.70KB9.07KB▼ 58.21%
screenshot-1.png136.88KB34.68KB▼ 74.67%
screenshot-2.png146.89KB48.04KB▼ 67.30%
screenshot-4.png242.00KB85.83KB▼ 64.53%
screenshot-3.png168.23KB52.56KB▼ 68.76%