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
Installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼6.79ms] Passed 4 tests
A check of server-side resources used by Easy Upload Files During Checkout
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.00 ▲0.17 |
Dashboard /wp-admin | 3.31 ▼0.03 | 46.76 ▼14.51 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 43.50 ▼2.15 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 79.78 ▼10.66 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 37.47 ▲4.97 |
Server storage [IO: ▲4.88MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 53 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Easy Upload Files During Checkout
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.33 ▼0.04 | 1.85 ▲0.17 | 44.47 ▲5.64 |
Dashboard /wp-admin | 2,192 ▲15 | 5.57 ▲0.03 | 97.91 ▲6.61 | 41.74 ▲3.04 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.00 ▼0.11 | 35.25 ▼1.73 | 34.19 ▼3.29 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.33 ▲0.50 | 632.75 ▼14.43 | 50.46 ▼3.47 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.15 ▼0.06 | 95.56 ▼2.84 | 39.29 ▼1.25 |
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
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 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 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 fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-upload-files-during-checkout/inc/functions-inner.php:58
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% 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
5 plugin tags: checkout process, attach files, during checkout process, login, upload files
easy-upload-files-during-checkout/index.php 92% from 13 tests
The primary PHP file in "Easy Upload Files During Checkout" version 2.9.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("easy-upload-files-during-checkout.php" instead of "index.php")
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
Everything looks great! No dangerous files found in this plugin16,168 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 0 | 9,546 |
PO File | 8 | 1,492 | 1,643 | 3,294 |
PHP | 4 | 1,188 | 888 | 1,494 |
JavaScript | 6 | 531 | 24 | 990 |
CSS | 5 | 87 | 15 | 844 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 56 | |
▷ Named functions | 54 | 96.43% |
▷ Anonymous functions | 2 | 3.57% |
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
4 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/premium-r.png | 6.20KB | 3.67KB | ▼ 40.68% |
img/premium-g.png | 6.20KB | 3.70KB | ▼ 40.32% |
img/dimensions.png | 54.72KB | 18.91KB | ▼ 65.44% |
img/disk.png | 8.33KB | 3.79KB | ▼ 54.56% |