Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼7.52ms] Passed 4 tests
This is a short check of server-side resources used by Image Rotator Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 39.86 ▼4.36 |
Dashboard /wp-admin | 3.36 ▲0.06 | 46.74 ▼5.13 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 47.46 ▲0.59 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 79.30 ▼19.45 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 33.58 ▼1.13 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_dk-image-rotator-widget |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Image Rotator Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,885 ▲150 | 13.78 ▼0.51 | 7.24 ▲5.06 | 40.55 ▼10.11 |
Dashboard /wp-admin | 2,209 ▲21 | 4.84 ▼0.98 | 108.29 ▼7.09 | 36.89 ▼8.21 |
Posts /wp-admin/edit.php | 2,092 ▲6 | 2.04 ▲0.04 | 38.33 ▲0.63 | 32.39 ▼0.33 |
Add New Post /wp-admin/post-new.php | 1,538 ▲24 | 23.24 ▲5.69 | 658.91 ▲3.05 | 51.83 ▲2.52 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.15 ▼0.08 | 99.63 ▼4.46 | 43.02 ▲1.28 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- widget_dk-image-rotator-widget
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however 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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dk-new-medias-image-rotator-widget/dkirw.php:65
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (DK New Media's Image Rotator Widget.), #2 (Once you've selected or uploaded the image, you must click "Send to Image Rotator."), #3 (Images added to the widget are listed in dynamically in the Images section.), #4 (Multiple images have been added to this widget), #5 (Hover over the image name to see a tooltip that contains the image.), #6 (Drag & Drop images to sort, right in the widget settings.)
dk-new-medias-image-rotator-widget/dkirw.php 85% from 13 tests
"Image Rotator Widget" version 1.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 169 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("dk-new-medias-image-rotator-widget.php" instead of "dkirw.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected499 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 30 | 26 | 208 |
PHP | 1 | 32 | 43 | 206 |
CSS | 2 | 15 | 0 | 85 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 36.00 |
▷ Minimum class complexity | 36.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 8.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
7 PNG files occupy 0.15MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 14.49KB | 6.82KB | ▼ 52.93% |
images/add_image.png | 1.69KB | 1.37KB | ▼ 19.10% |
screenshot-4.png | 16.94KB | 7.53KB | ▼ 55.55% |
screenshot-6.png | 18.27KB | 8.12KB | ▼ 55.57% |
screenshot-5.png | 26.86KB | 11.10KB | ▼ 58.66% |