Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.05ms] Passed 4 tests
This is a short check of server-side resources used by WooCommerce Thumbnails Upload
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 44.71 ▲1.43 |
Dashboard /wp-admin | 3.33 ▼0.02 | 51.23 ▼19.66 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 50.96 ▲3.65 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 91.57 ▼14.74 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.94 ▲0.77 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WooCommerce Thumbnails Upload
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▲0.00 | 1.78 ▲0.13 | 45.60 ▲2.40 |
Dashboard /wp-admin | 2,195 ▲18 | 5.57 ▼0.09 | 86.50 ▼9.29 | 37.58 ▼2.71 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▲0.03 | 37.05 ▼6.22 | 35.74 ▼0.45 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.10 ▲0.12 | 644.19 ▼42.27 | 63.52 ▲6.81 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.20 ▲0.05 | 98.83 ▼4.82 | 47.44 ▲0.29 |
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 did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
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)
Good news, no errors were detected
SRP 50% from 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
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_action() in wp-content/plugins/hiweb-wc-thumbnail-upload/include/hooks.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hiweb-wc-thumbnail-upload/include/hooks.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: Screenshot #1 () image not found
- Tags: Please reduce the number of tags, currently 21 tag instead of maximum 10
- Donate link: Invalid url: ""
hiweb-wc-thumbnail-upload/hiweb-wc-thumbnail-upload.php Passed 13 tests
"WooCommerce Thumbnails Upload" version 1.0.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
116 characters long description:
Upload pictures of products and categories directly in the list of goods and categories using the drag & drop method
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin1,769 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 113 | 34 | 1,632 |
PHP | 4 | 7 | 16 | 79 |
Sass | 1 | 5 | 0 | 31 |
CSS | 1 | 1 | 1 | 27 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 4.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 1 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 1 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.12MB with 0.08MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 102.81KB | 44.97KB | ▼ 56.26% |
images/icon-upload.png | 17.78KB | 2.75KB | ▼ 84.55% |