80% inventory-source-dropship-automation

Code Review | Inventory Source: Dropship Automation

WordPress plugin Inventory Source: Dropship Automation scored80%from 54 tests.

About plugin

  • Plugin page: inventory-source-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.5
  • WordPress version: 6.3.1
  • First release: Apr 13, 2016
  • Latest release: May 3, 2016
  • Number of updates: 5
  • Update frequency: every 5.0 days
  • Top authors: InventorySource (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

70+ active /6,593 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 gracefully, with no errors

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

This is a short check of server-side resources used by Inventory Source: Dropship Automation
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0136.85 ▼6.23
Dashboard /wp-admin3.31 ▲0.0146.48 ▼5.74
Posts /wp-admin/edit.php3.36 ▲0.0045.71 ▼1.46
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.27 ▲0.14
Media Library /wp-admin/upload.php3.23 ▲0.0032.39 ▼0.00

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Inventory Source: Dropship Automation
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲7614.48 ▲0.081.80 ▼0.1537.51 ▼15.21
Dashboard /wp-admin2,214 ▲265.86 ▲0.0598.45 ▼16.6469.35 ▲21.88
Posts /wp-admin/edit.php2,103 ▲142.01 ▲0.0038.73 ▲2.0436.18 ▼1.53
Add New Post /wp-admin/post-new.php1,533 ▲1923.25 ▲5.51685.86 ▲30.2948.95 ▼0.72
Media Library /wp-admin/upload.php1,393 ▲54.19 ▲0.0396.51 ▲0.3571.87 ▲26.20

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_dropshipapikey
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: woocommerce, ecommmerce, inventorysource, dropship

inventory-source-dropship-automation/inventory-source-dropship-automation.php 92% from 13 tests

The entry point to "Inventory Source: Dropship Automation" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 172 characters long)

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 plugin104 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2312104

PHP code Passed 2 tests

An short overview of 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.17
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
4 PNG files occupy 0.13MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inventory_logo.png2.24KB2.35KB0.00%
WooCommerce-Plugin.png129.02KB41.92KB▼ 67.51%
check.png0.40KB0.45KB0.00%
icon.png0.71KB0.75KB0.00%