Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.78ms] Passed 4 tests
An overview of server-side resources used by Simple Image Upload
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 42.18 ▼2.29 |
Dashboard /wp-admin | 3.31 ▲0.01 | 50.78 ▼3.06 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.56 ▼8.27 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.97 ▼21.49 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.51 ▲1.38 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Simple Image Upload: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲50 | 14.75 ▲0.16 | 1.74 ▲0.16 | 42.46 ▲0.01 |
Dashboard /wp-admin | 2,220 ▲40 | 5.65 ▲0.00 | 87.77 ▼3.43 | 40.65 ▼2.72 |
Posts /wp-admin/edit.php | 2,102 ▲2 | 1.99 ▼0.04 | 36.27 ▼5.84 | 36.98 ▼0.86 |
Add New Post /wp-admin/post-new.php | 1,530 ▲2 | 23.15 ▲0.06 | 655.56 ▼37.97 | 62.64 ▲2.56 |
Media Library /wp-admin/upload.php | 1,396 ▼4 | 4.17 ▼0.06 | 99.71 ▼3.85 | 43.16 ▼1.83 |
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 detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
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
Good news, no errors were detected
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 server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-image-upload/postimage.php:25
- > PHP Fatal error
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, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
- Screenshots: These screenshots have no corresponding images in /assets: #1 (When starting new post you see "add image to post" link below textarea), #2 (Click that link, popup will appear where you should select image), #3 (You click "upload it" link, image is uploaded and html code is automatically inserted in post)
simple-image-upload/postimage.php 85% from 13 tests
"Simple Image Upload" version 1.4.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-image-upload.php" instead of "postimage.php")
- Requires at least: Please use periods and digits for the required version (ex. "7.0" instead of "WP 3.0.0")
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 plugin11 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 4 | 12 | 11 |
JavaScript | 1 | 0 | 1 | 0 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 1 | |
▷ Static methods | 1 | 100.00% |
▷ Public methods | 1 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 11.98KB | 5.54KB | ▼ 53.77% |
screenshot-2.png | 13.53KB | 8.10KB | ▼ 40.14% |
screenshot-3.png | 70.56KB | 22.11KB | ▼ 68.66% |