Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼142.67ms] Passed 4 tests
This is a short check of server-side resources used by WooCommerce Upload My File
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▲0.08 | 36.57 ▲1.48 |
Dashboard /wp-admin | 3.14 ▲0.08 | 46.75 ▲0.57 |
Posts /wp-admin/edit.php | 3.25 ▲0.14 | 43.51 ▼0.36 |
Add New Post /wp-admin/post-new.php | 5.50 ▲0.06 | 88.50 ▼571.05 |
Media Library /wp-admin/upload.php | 3.08 ▲0.08 | 32.53 ▲0.16 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by WooCommerce Upload My File
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,683 ▲101 | 15.94 ▲0.45 | 11.79 ▲0.50 | 47.79 ▼8.03 |
Dashboard /wp-admin | 2,974 ▲40 | 5.99 ▼0.06 | 144.03 ▼1.43 | 109.17 ▲1.34 |
Posts /wp-admin/edit.php | 2,743 ▲4 | 2.72 ▲0.00 | 67.00 ▼1.59 | 88.78 ▼1.73 |
Add New Post /wp-admin/post-new.php | 1,618 ▲37 | 21.42 ▲0.81 | 300.55 ▼92.59 | 101.23 ▼17.15 |
Media Library /wp-admin/upload.php | 1,737 ▼73 | 5.00 ▼0.01 | 151.40 ▼36.29 | 115.22 ▼0.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woocommerce-upload-my-file/inc/class-check-woocommerce.php:13
- > 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 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
2 plugin tags: file upload, woocommerce
woocommerce-upload-my-file/woocommerce-upload-my-file.php 92% from 13 tests
The primary PHP file in "WooCommerce Upload My File" version 0.6.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("5.6" instead of "3.3.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,659 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 5 | 592 | 1,025 | 922 |
PHP | 6 | 185 | 153 | 682 |
CSS | 1 | 6 | 1 | 55 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 3.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 | 2 | |
▷ Static methods | 2 | 100.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 29 | |
▷ Named functions | 29 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/umf-icon-accept.png | 0.63KB | 0.58KB | ▼ 7.47% |
img/umf-file-icons.png | 5.02KB | 2.26KB | ▼ 54.98% |
img/icon-check.png | 0.31KB | 0.24KB | ▼ 24.69% |
img/icon-umf.png | 0.24KB | 0.19KB | ▼ 20.49% |
img/umf-icon-cross.png | 0.75KB | 0.65KB | ▼ 12.83% |