80% wc-dropi-integration

Code Review | Dropify

WordPress plugin Dropify scored80%from 54 tests.

About plugin

  • Plugin page: wc-dropi-integration
  • Plugin version: 4.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2.3-6.2
  • WordPress version: 6.3.1
  • First release: May 25, 2021
  • Latest release: Oct 10, 2023
  • Number of updates: 154
  • Update frequency: every 5.6 days
  • Top authors: jhaineymilevis (96.1%)sierravdp (4.55%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /13,532 total downloads

Benchmarks

Plugin footprint 65% 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.58MB] [CPU: ▲0.53ms] Passed 4 tests

An overview of server-side resources used by Dropify
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.04 ▲0.5844.24 ▲3.76
Dashboard /wp-admin3.88 ▲0.5857.84 ▲4.02
Posts /wp-admin/edit.php3.94 ▲0.5851.29 ▼0.83
Add New Post /wp-admin/post-new.php6.47 ▲0.58101.56 ▼4.45
Media Library /wp-admin/upload.php3.81 ▲0.5841.46 ▲3.65

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 47 new files
Database: 1 new table, 6 new options
New tables
wp_dropi_tokens
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Dropify
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,853 ▲9214.68 ▲0.131.64 ▼0.1341.19 ▲0.23
Dashboard /wp-admin2,225 ▲485.58 ▲0.0295.14 ▲7.5941.25 ▼3.30
Posts /wp-admin/edit.php2,106 ▲32.00 ▲0.0335.32 ▼7.0937.51 ▼0.51
Add New Post /wp-admin/post-new.php1,455 ▼7122.17 ▼0.95508.59 ▼180.19146.80 ▲88.07
Media Library /wp-admin/upload.php1,427 ▲274.19 ▼0.1097.38 ▼21.6638.84 ▼8.38

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_dropi_tokens
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
The SRP test was a success

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: dropi, woocommerce, dropshipping

wc-dropi-integration/wc-dropi-integration.php Passed 13 tests

The main file in "Dropify" v. 4.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
76 characters long description:
This plugin allow users to show and import products from dropi on woocomerce

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected17,447 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
CSS24279,405
PHP299774927,545
JavaScript515253494
Markdown1103

PHP code Passed 2 tests

This is a very shot 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.31
Average class complexity21.94
▷ Minimum class complexity1.00
▷ Maximum class complexity102.00
Average method complexity3.39
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes00.00%
Methods158
▷ Static methods2012.66%
▷ Public methods14289.87%
▷ Protected methods42.53%
▷ Private methods127.59%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
7 PNG files occupy 0.12MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/icon.png0.47KB0.74KB0.00%
assets/screenshot-1.png16.65KB6.44KB▼ 61.36%
assets/screenshot-2.png59.04KB19.43KB▼ 67.09%
assets/banner-772x250.png22.60KB9.11KB▼ 59.68%
img/avatar.png6.94KB3.53KB▼ 49.20%