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.03MB] [CPU: ▼6.51ms] Passed 4 tests
Server-side resources used by DuggMedia
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 58.83 ▲16.84 |
Dashboard /wp-admin | 3.33 ▲0.03 | 47.85 ▼6.25 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 46.71 ▼1.56 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 86.79 ▼21.44 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.78 ▲3.21 |
DuggMedia /wp-admin/options-general.php?page=duggmedia_settings | 3.24 | 36.98 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
duggmedia_version |
theysaidso_admin_options |
Browser metrics Passed 4 tests
DuggMedia: 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,795 ▲34 | 14.34 ▼0.25 | 2.63 ▲0.86 | 56.98 ▲13.82 |
Dashboard /wp-admin | 2,204 ▲27 | 5.61 ▲0.03 | 84.51 ▼10.19 | 43.36 ▼0.26 |
Posts /wp-admin/edit.php | 2,103 ▼2 | 1.98 ▼0.01 | 37.60 ▲0.48 | 35.67 ▲2.12 |
Add New Post /wp-admin/post-new.php | 1,531 ▼5 | 23.42 ▲0.25 | 644.84 ▼45.90 | 62.47 ▲12.53 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.19 ▼0.03 | 99.66 ▼4.65 | 44.19 ▼5.91 |
DuggMedia /wp-admin/options-general.php?page=duggmedia_settings | 999 | 1.99 | 23.55 | 30.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- duggmedia_version
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success
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 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: store, photo, share, webshop, duggonline...
duggmedia/duggmedia.php 85% from 13 tests
The entry point to "DuggMedia" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 184 characters long)
- Requires at least: The required version number must match the one declared in readme.txt ("4.6" instead of "5.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected261 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 53 | 44 | 248 |
CSS | 1 | 1 | 0 | 13 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 3.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 4 | 23.53% |
▷ Public methods | 12 | 70.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 29.41% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.40MB with 0.24MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
static/duggmedia-logo.png | 158.52KB | 58.31KB | ▼ 63.21% |
admin/static/duggmedia-logo.png | 158.52KB | 58.31KB | ▼ 63.21% |
admin/static/duggmedia-support-button.png | 44.41KB | 18.88KB | ▼ 57.49% |
static/duggmedia-support-button.png | 44.41KB | 18.88KB | ▼ 57.49% |