90% woocommerce-dropbox

Code Review | WooCommerce Dropbox

WordPress plugin WooCommerce Dropbox scored90%from 54 tests.

About plugin

  • Plugin page: woocommerce-dropbox
  • Plugin version: 1.2.5
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.0-5.8.1
  • WordPress version: 6.3.1
  • First release: Sep 9, 2014
  • Latest release: Sep 9, 2021
  • Number of updates: 37
  • Update frequency: every 69.1 days
  • Top authors: vadiemjanssens (100%)

Code review

54 tests

User reviews

25 reviews

Install metrics

1,000+ active /16,860 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.46ms] Passed 4 tests

This is a short check of server-side resources used by WooCommerce Dropbox
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.12 ▲1.75
Dashboard /wp-admin3.32 ▲0.0145.42 ▼7.36
Posts /wp-admin/edit.php3.37 ▲0.0146.08 ▼0.48
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.22 ▼11.76
Media Library /wp-admin/upload.php3.24 ▲0.0136.66 ▲7.18

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WooCommerce Dropbox
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲8013.21 ▼1.171.91 ▼0.0144.10 ▼1.70
Dashboard /wp-admin2,206 ▲184.84 ▼1.04109.27 ▼6.2341.52 ▼3.85
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0339.12 ▲2.5734.20 ▲1.10
Add New Post /wp-admin/post-new.php1,536 ▲823.20 ▼0.01672.62 ▲29.7462.48 ▲9.78
Media Library /wp-admin/upload.php1,385 ▼34.22 ▲0.00106.25 ▲10.8344.68 ▲2.22

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
Looking good! No server-side errors or output 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
No browser errors were detected

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
5 plugin tags: dropbox, products, downloadable, woocommerce, downloadable product

woocommerce-dropbox/woocommerce-dropbox.php 92% from 13 tests

The main PHP file in "WooCommerce Dropbox" ver. 1.2.5 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "4.8.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected255 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP23867116
JavaScript1222766
PO File1172746
CSS10011
Markdown16010
SVG1006

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity4.00
▷ Minimum class complexity3.00
▷ Maximum class complexity5.00
Average method complexity1.55
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin