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.11MB] [CPU: ▼3.08ms] Passed 4 tests
Server-side resources used by Dynamic Placeholder Images
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.15 | 36.50 ▼6.62 |
Dashboard /wp-admin | 3.46 ▲0.16 | 45.02 ▼5.02 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 47.40 ▼2.42 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 92.81 ▲2.31 |
Media Library /wp-admin/upload.php | 3.30 ▲0.08 | 35.33 ▲1.73 |
Dynamic Placeholder Images /wp-admin/options-general.php?page=gga-dynamic-images-settings | 3.29 | 31.59 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 21 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_gga_dynamic_images_stats |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Dynamic Placeholder Images: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,874 ▲139 | 13.34 ▼0.97 | 1.61 ▼0.25 | 38.95 ▼4.76 |
Dashboard /wp-admin | 2,266 ▲74 | 4.87 ▼0.07 | 107.64 ▼12.55 | 42.05 ▼3.00 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.05 | 38.68 ▼1.62 | 34.83 ▼3.15 |
Add New Post /wp-admin/post-new.php | 1,539 ▲25 | 23.28 ▲5.74 | 589.19 ▼61.80 | 54.35 ▼1.94 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.21 ▲0.06 | 94.99 ▼1.86 | 41.68 ▼1.64 |
Dynamic Placeholder Images /wp-admin/options-general.php?page=gga-dynamic-images-settings | 797 | 2.03 | 23.21 | 26.50 |
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_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 13× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/dynamic-placeholder-images/includes/class-gga-dynamic-placeholder-images-attachment-meta.php
- > /wp-content/plugins/dynamic-placeholder-images/includes/class-gga-dynamic-placeholder-images-settings.php
- > /wp-content/plugins/dynamic-placeholder-images/admin/partials/admin-api-header.php
- > /wp-content/plugins/dynamic-placeholder-images/admin/partials/admin-general-header.php
- > /wp-content/plugins/dynamic-placeholder-images/includes/class-gga-dynamic-placeholder-images-dashboard-widgets.php
- > /wp-content/plugins/dynamic-placeholder-images/includes/class-gga-dynamic-placeholder-images-cache.php
- > /wp-content/plugins/dynamic-placeholder-images/gga-dynamic-placeholder-images.php
- > /wp-content/plugins/dynamic-placeholder-images/admin/partials/admin-cache-header.php
- > /wp-content/plugins/dynamic-placeholder-images/includes/class-gga-dynamic-placeholder-images-stats.php
- > /wp-content/plugins/dynamic-placeholder-images/includes/class-gga-dynamic-placeholder-images-attribution.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/dynamic-placeholder-images/public/partials/image-attribution-item.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/dynamic-placeholder-images/uninstall.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: images, media
dynamic-placeholder-images/gga-dynamic-placeholder-images.php 69% from 13 tests
"Dynamic Placeholder Images" version 2.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 155 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("dynamic-placeholder-images.php" instead of "gga-dynamic-placeholder-images.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
- Domain Path: The domain path folder does not exist ("/lang")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,303 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 530 | 61 | 1,272 |
CSS | 1 | 10 | 0 | 31 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 16.12 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 96 | |
▷ Static methods | 1 | 1.04% |
▷ Public methods | 57 | 59.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 39 | 40.62% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/cc-non-commercial.png | 1.37KB | 0.31KB | ▼ 77.30% |
public/images/cc-attribution.png | 1.25KB | 0.24KB | ▼ 81.06% |
public/images/cc-share-alike.png | 1.29KB | 0.28KB | ▼ 78.67% |
admin/partials/image-meta-01.png | 18.16KB | 6.90KB | ▼ 62.01% |