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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼4.30ms] Passed 4 tests
Analyzing server-side resources used by Drag & Drop Featured Image Improved
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 41.35 ▼7.58 |
Dashboard /wp-admin | 3.38 ▲0.07 | 73.16 ▲13.76 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 51.86 ▲0.90 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 91.69 ▼10.15 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 37.35 ▼0.37 |
Featured Image /wp-admin/options-general.php?page=drag-drop-featured-image-improved | 3.29 | 34.18 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
drag-drop-user-capability |
drag-drop-file-types |
theysaidso_admin_options |
can_compress_scripts |
drag-drop-page-reload |
db_upgraded |
drag-drop-post-types |
widget_recent-comments |
Browser metrics Passed 4 tests
Drag & Drop Featured Image Improved: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.39 ▲0.21 | 1.91 ▼0.50 | 42.29 ▼0.87 |
Dashboard /wp-admin | 2,199 ▲22 | 5.57 ▼0.01 | 83.73 ▼16.52 | 38.46 ▼4.26 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.97 ▼0.00 | 37.96 ▼1.57 | 34.11 ▼1.62 |
Add New Post /wp-admin/post-new.php | 6,319 ▲4,791 | 18.94 ▼4.35 | 984.40 ▲359.42 | 82.77 ▲28.67 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.14 ▲0.01 | 96.26 ▼18.26 | 43.71 ▼1.48 |
Featured Image /wp-admin/options-general.php?page=drag-drop-featured-image-improved | 934 | 2.03 | 26.01 | 35.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 10 options
- drag-drop-file-types
- theysaidso_admin_options
- can_compress_scripts
- drag-drop-post-types
- widget_recent-posts
- drag-drop-page-reload
- widget_theysaidso_widget
- drag-drop-user-capability
- db_upgraded
- widget_recent-comments
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_option() in wp-content/plugins/drag-drop-featured-image-improved/index.php:40
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/drag-drop-featured-image-improved/assets/views/options.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: image, metabox, replacement, upload, featured image
drag-drop-featured-image-improved/index.php 77% from 13 tests
"Drag & Drop Featured Image Improved" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("drag-drop-featured-image-improved.php" instead of "index.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: Please keep the plugin description shorter than 140 characters (currently 142 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin585 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 176 | 150 | 412 |
CSS | 2 | 23 | 0 | 96 |
JavaScript | 1 | 29 | 25 | 77 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.40MB with 0.27MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 240.62KB | 73.84KB | ▼ 69.31% |
screenshot-3.png | 95.56KB | 31.06KB | ▼ 67.50% |
screenshot-1.png | 69.80KB | 23.46KB | ▼ 66.39% |