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
Install script ran successfully
Server metrics [RAM: ▼0.61MB] [CPU: ▼297.74ms] Passed 4 tests
Server-side resources used by WP Image Uploader
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.08 ▲0.25 | 35.56 ▼0.79 |
Dashboard /wp-admin | 3.04 ▼0.01 | 18.93 ▼31.17 |
Posts /wp-admin/edit.php | 3.04 ▼0.07 | 21.04 ▼20.86 |
Add New Post /wp-admin/post-new.php | 3.04 ▼2.39 | 21.66 ▼1,123.77 |
Media Library /wp-admin/upload.php | 3.04 ▲0.03 | 21.91 ▼15.16 |
Server storage [IO: ▲1.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 28 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for WP Image Uploader
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,801 ▲219 | 16.87 ▲1.29 | 9.96 ▲0.55 | 53.05 ▲5.99 |
Dashboard /wp-admin | 2,963 ▲113 | 6.54 ▲0.53 | 131.29 ▼5.10 | 134.57 ▲23.30 |
Posts /wp-admin/edit.php | 2,764 ▲58 | 2.75 ▲0.05 | 67.38 ▲2.51 | 113.13 ▲15.21 |
Add New Post /wp-admin/post-new.php | 1,681 ▲200 | 18.83 ▲0.35 | 364.32 ▲8.81 | 124.01 ▲14.60 |
Media Library /wp-admin/upload.php | 1,753 ▲40 | 5.16 ▲0.21 | 126.88 ▼38.69 | 129.89 ▲10.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5495
has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 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 following issues need your attention
- 5× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-image-uploader/templates/show_uploaded_images_tpl.php
- > /wp-content/plugins/wp-image-uploader/templates/folder_tree_admin_tpl.php
- > /wp-content/plugins/wp-image-uploader/templates/buy_premium_tpl.php
- > /wp-content/plugins/wp-image-uploader/templates/admin_home_tpl.php
- > /wp-content/plugins/wp-image-uploader/templates/upload_form_tpl.php
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined variable: my_site_url in wp-content/plugins/wp-image-uploader/templates/upload_form_tpl.php on line 16
- > PHP Notice
Undefined variable: images in wp-content/plugins/wp-image-uploader/templates/show_uploaded_images_tpl.php on line 2
- > PHP Notice
Undefined variable: all_files in wp-content/plugins/wp-image-uploader/templates/admin_home_tpl.php on line 28
- > PHP Notice
Undefined variable: myFolder in wp-content/plugins/wp-image-uploader/templates/admin_home_tpl.php on line 14
- > PHP Notice
Undefined variable: my_site_url in wp-content/plugins/wp-image-uploader/templates/upload_form_tpl.php on line 10
- > PHP Notice
Undefined variable: FolderTree in wp-content/plugins/wp-image-uploader/templates/folder_tree_admin_tpl.php on line 3
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/wp-image-uploader/templates/show_uploaded_images_tpl.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-image-uploader/index.php:19
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Donate link: Please fix this invalid URI: ""
wp-image-uploader/index.php 85% from 13 tests
The primary PHP file in "WP Image Uploader" version 1.0.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 160 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-image-uploader.php" instead of "index.php")
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
Success! There were no dangerous files found in this plugin1,716 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 601 | 2,098 | 1,295 |
CSS | 1 | 19 | 0 | 177 |
JavaScript | 3 | 10 | 26 | 176 |
Markdown | 1 | 25 | 0 | 68 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 47.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 4.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 65.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 112 | |
▷ Static methods | 14 | 12.50% |
▷ Public methods | 80 | 71.43% |
▷ Protected methods | 32 | 28.57% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 55 | |
▷ Global constants | 46 | 83.64% |
▷ Class constants | 9 | 16.36% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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 |
images/pics_1.png | 1.78KB | 1.41KB | ▼ 20.95% |