Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼9.40ms] Passed 4 tests
Analyzing server-side resources used by Checkout Files Upload for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.04 | 41.84 ▼1.98 |
Dashboard /wp-admin | 3.60 ▼0.03 | 51.19 ▼13.88 |
Posts /wp-admin/edit.php | 3.72 ▲0.04 | 57.46 ▼2.30 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.04 | 88.21 ▼19.43 |
Media Library /wp-admin/upload.php | 3.52 ▲0.04 | 40.20 ▲4.59 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Checkout Files Upload for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.31 ▼0.06 | 1.74 ▼0.07 | 43.16 ▲1.00 |
Dashboard /wp-admin | 2,192 ▲12 | 5.57 ▲0.02 | 95.11 ▲8.02 | 42.68 ▲1.87 |
Posts /wp-admin/edit.php | 2,103 ▲6 | 2.03 ▲0.04 | 36.92 ▼1.20 | 35.99 ▼0.28 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.14 ▲5.69 | 708.35 ▼1.83 | 54.24 ▲3.47 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.21 ▼0.03 | 98.11 ▼21.96 | 45.68 ▼3.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: checkout, woocommerce, checkout files upload, woo commerce
checkout-files-upload-woocommerce/checkout-files-upload-woocommerce.php Passed 13 tests
The principal PHP file in "Checkout Files Upload for WooCommerce" v. 2.1.5 is loaded by WordPress automatically on each request
67 characters long description:
Let your customers upload files on (or after) WooCommerce checkout.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected2,384 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 219 | 572 | 2,115 |
JavaScript | 2 | 27 | 26 | 241 |
CSS | 2 | 1 | 8 | 28 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 41.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 287.00 |
Average method complexity | 7.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 82.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 1 | 12.50% |
Methods | 54 | |
▷ Static methods | 5 | 9.26% |
▷ Public methods | 54 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/default_file_image.png | 2.38KB | 0.92KB | ▼ 61.29% |