Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼298.50ms] Passed 4 tests
This is a short check of server-side resources used by Advanced uploader
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.03 | 55.65 ▲2.71 |
Dashboard /wp-admin | 3.45 ▲0.05 | 32.71 ▼4.41 |
Posts /wp-admin/edit.php | 3.68 ▲0.04 | 36.26 ▲0.32 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.05 | 92.69 ▼1,192.49 |
Media Library /wp-admin/upload.php | 3.34 ▲0.05 | 26.11 ▲2.59 |
Advanced uploader /wp-admin/upload.php?page=adv-file-upload | 3.31 | 25.77 |
Server storage [IO: ▲2.70MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 56 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Advanced uploader
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,771 ▲17 | 16.01 ▲0.30 | 5.69 ▼0.67 | 2.35 ▼0.51 |
Dashboard /wp-admin | 2,900 ▲42 | 5.99 ▼0.12 | 127.94 ▲0.70 | 167.85 ▲2.29 |
Posts /wp-admin/edit.php | 2,699 ▲11 | 3.22 ▼0.02 | 64.02 ▼0.54 | 136.82 ▼7.91 |
Add New Post /wp-admin/post-new.php | 1,758 ▲97 | 21.66 ▲5.57 | 439.31 ▲28.50 | 165.48 ▲4.98 |
Media Library /wp-admin/upload.php | 1,705 ▲7 | 5.52 ▲0.02 | 144.44 ▼3.24 | 190.50 ▼6.21 |
Advanced uploader /wp-admin/upload.php?page=adv-file-upload | 1,048 | 3.50 | 99.83 | 116.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
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 shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-uploader/upload.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: upload, thumbnail
advanced-uploader/upload.php 85% from 13 tests
The principal PHP file in "Advanced uploader" v. 4.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("advanced-uploader.php" instead of "upload.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 206 characters long)
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
These items require your attention
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .xap - Silverlight Application Package in Microsoft Silverlight
- ☣ wp-content/plugins/advanced-uploader/js/Moxie.xap
- .xap - Silverlight Application Package in Microsoft Silverlight
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 15 | 3,207 | 3,027 | 72,056 |
CSS | 9 | 82 | 138 | 1,790 |
PHP | 1 | 209 | 234 | 954 |
HTML | 1 | 67 | 3 | 309 |
JSON | 1 | 0 | 0 | 74 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
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 | 44 | |
▷ Named functions | 44 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
20 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-bg_glass_95_fef1ec_1x400.png | 0.32KB | 0.15KB | ▼ 54.82% |
js/jquery-ui-1.12.1.custom/images/ui-icons_777620_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
js/jquery-ui-1.12.1.custom/images/ui-icons_444444_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
css/images/ui-icons_cd0a0a_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
css/images/ui-icons_222222_256x240.png | 6.76KB | 4.17KB | ▼ 38.24% |