Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼1.09ms] Passed 4 tests
Server-side resources used by Drag and Drop Multiple File Upload for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 38.25 ▲2.54 |
Dashboard /wp-admin | 3.38 ▲0.08 | 49.54 ▼2.36 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 53.77 ▲4.97 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 86.76 ▼9.51 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 35.80 ▲5.64 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Drag and Drop Multiple File Upload for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲28 | 14.38 ▼0.35 | 1.92 ▲0.10 | 44.44 ▲7.52 |
Dashboard /wp-admin | 2,198 ▲21 | 5.61 ▼0.04 | 93.50 ▼3.01 | 36.88 ▼9.54 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.03 ▲0.01 | 33.86 ▼3.43 | 31.84 ▼4.31 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.01 ▼0.13 | 688.59 ▲51.12 | 53.81 ▲2.81 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.14 ▼0.08 | 95.37 ▼6.62 | 41.03 ▼0.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests Passed 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)
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: woocommerce, drag and drop, woocommerce uploader, multiple file, ajax uploader...
drag-and-drop-multiple-file-upload-for-woocommerce/drag-and-drop-file-uploads-wc.php 77% from 13 tests
"Drag and Drop Multiple File Upload for WooCommerce" version 1.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("3.0.1" instead of "3.5.0")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("drag-and-drop-multiple-file-upload-for-woocommerce.php" instead of "drag-and-drop-file-uploads-wc.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin1,986 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 321 | 317 | 911 |
JavaScript | 3 | 195 | 180 | 523 |
PO File | 4 | 131 | 158 | 358 |
CSS | 1 | 18 | 10 | 179 |
SVG | 1 | 0 | 0 | 15 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 4.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 1 | 5.56% |
▷ Public methods | 16 | 88.89% |
▷ Protected methods | 1 | 5.56% |
▷ Private methods | 1 | 5.56% |
Functions | 28 | |
▷ Named functions | 27 | 96.43% |
▷ Anonymous functions | 1 | 3.57% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
There were not PNG files found in your plugin