84% wooshark-aliexpress-importer

Code Review | Sharkdropship for AliExpress Dropship and Affiliate

WordPress plugin Sharkdropship for AliExpress Dropship and Affiliate scored84%from 54 tests.

About plugin

  • Plugin page: wooshark-aliexpre...
  • Plugin version: 2.2.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 16, 2018
  • Latest release: Sep 17, 2023
  • Number of updates: 183
  • Update frequency: every 10.0 days
  • Top authors: djamio1988 (93.99%)williamkitana9 (6.56%)

Code review

54 tests

User reviews

33 reviews

Install metrics

1,000+ active /82,561 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼0.34MB] [CPU: ▼17.42ms] Passed 4 tests

An overview of server-side resources used by Sharkdropship for AliExpress Dropship and Affiliate
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.79 ▲0.3240.38 ▼3.86
Dashboard /wp-admin3.69 ▲0.3845.45 ▼1.41
Posts /wp-admin/edit.php3.74 ▲0.3848.44 ▼2.65
Add New Post /wp-admin/post-new.php3.51 ▼2.3936.36 ▼61.75
Media Library /wp-admin/upload.php3.55 ▲0.3235.22 ▲0.58

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 36 new files
Database: no new tables, 8 new options
New WordPress options
WoosharkAliexpressImporter_Plugin__version
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
WoosharkAliexpressImporter_Plugin__installed
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Sharkdropship for AliExpress Dropship and Affiliate
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6914.47 ▼0.211.85 ▲0.0240.51 ▼4.28
Dashboard /wp-admin2,224 ▲364.96 ▲0.13110.76 ▲2.2380.07 ▲37.52
Posts /wp-admin/edit.php2,107 ▲182.01 ▲0.0038.91 ▼0.7933.72 ▼0.92
Add New Post /wp-admin/post-new.php1,542 ▲923.31 ▲0.16768.73 ▲80.9162.58 ▲9.61
Media Library /wp-admin/upload.php1,394 ▲64.25 ▼0.0599.48 ▼13.9268.97 ▲20.96

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 8 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • WoosharkAliexpressImporter_Plugin__installed
    • widget_recent-comments
    • WoosharkAliexpressImporter_Plugin__version
    • widget_recent-posts

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 | 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 take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wooshark-aliexpress-importer/wooshark-aliexpress-importer.php:85
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wooshark-aliexpress-importer/wooshark-aliexpress-importer_init.php:4

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 93% 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
Attributes that require attention:
  • Screenshots: Add descriptions for screenshots #1, #1, #2, #2, #3, #3, #4, #4, #5, #6, #6, #7, #8 in wooshark-aliexpress-importer/assets to your readme.txt
  • Donate link: Please fix this invalid url: ""
You can take inspiration from this readme.txt

wooshark-aliexpress-importer/wooshark-aliexpress-importer.php Passed 13 tests

The primary PHP file in "Sharkdropship for AliExpress Dropship and Affiliate" version 2.2.3 is used by WordPress to initiate all plugin functionality
52 characters long description:
Wooshark dropshipping for aliexpress and woocommerce

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 detected25,051 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
CSS61,86814316,487
JavaScript78776206,666
PHP86176221,898

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity5.50
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity1.41
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes233.33%
▷ Concrete classes466.67%
▷ Final classes00.00%
Methods68
▷ Static methods00.00%
▷ Public methods4363.24%
▷ Protected methods2536.76%
▷ Private methods00.00%
Functions30
▷ Named functions2996.67%
▷ Anonymous functions13.33%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/wooshark_1_27x27.png0.78KB0.63KB▼ 19.65%
images/wooshark_27x27.png0.78KB0.63KB▼ 20.07%
images/wooshark.png5.78KB5.78KB0.00%
images/chrome-extension-logo.png1.98KB1.34KB▼ 32.55%