Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.29MB] [CPU: ▼1.95ms] Passed 4 tests
Analyzing server-side resources used by Placeholder images
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.36 | 42.53 ▲0.65 |
Dashboard /wp-admin | 3.63 ▲0.33 | 45.43 ▼3.78 |
Posts /wp-admin/edit.php | 3.68 ▲0.32 | 47.87 ▼5.46 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.27 | 99.60 ▲0.79 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 38.29 ▲5.15 |
Server storage [IO: ▲2.33MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 170 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
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,800 ▲65 | 14.79 ▲0.43 | 1.73 ▼0.27 | 43.49 ▼5.47 |
Dashboard /wp-admin | 2,203 ▲12 | 5.80 ▼0.11 | 96.04 ▼8.26 | 38.54 ▼5.84 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▲0.01 | 40.12 ▲0.36 | 34.42 ▼2.60 |
Add New Post /wp-admin/post-new.php | 1,514 ▼28 | 17.97 ▼0.40 | 659.50 ▲51.21 | 63.88 ▲13.20 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.29 ▲0.05 | 93.59 ▼10.39 | 43.86 ▲0.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
- 4× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/placeholder-images/LolitaFramework/Configuration/views/meta_box_with_controls.php
- > /wp-content/plugins/placeholder-images/LolitaFramework/Controls/Repeater/views/template.php
- > /wp-content/plugins/placeholder-images/LolitaFramework/Configuration/views/meta_box_default.php
- > /wp-content/plugins/placeholder-images/LolitaFramework/Controls/Gallery/views/template.php
- 86× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/placeholder-images/LolitaFramework/Controls/Repeater/views/template.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'placeholderimages\\LolitaFramework\\Configuration\\Init' not found in wp-content/plugins/placeholder-images/LolitaFramework/Configuration/Modules/Supports.php:8
- > PHP Notice
Undefined variable: me in wp-content/plugins/placeholder-images/LolitaFramework/Controls/Textarea/views/textarea.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'placeholderimages\\LolitaFramework\\Controls\\Control' not found in wp-content/plugins/placeholder-images/LolitaFramework/Controls/Radios/Radios.php:7
- > PHP Fatal error
Uncaught Error: Interface 'placeholderimages\\LolitaFramework\\Configuration\\IModule' not found in wp-content/plugins/placeholder-images/LolitaFramework/Configuration/Modules/ShortCodes.php:7
- > PHP Notice
Undefined variable: me in wp-content/plugins/placeholder-images/LolitaFramework/Controls/Icons/views/pack.php on line 1
- > PHP Notice
Undefined variable: controls in wp-content/plugins/placeholder-images/LolitaFramework/Configuration/views/meta_box_with_controls_side.php on line 1
- > PHP Fatal error
Uncaught Error: Interface 'placeholderimages\\LolitaFramework\\Configuration\\IModule' not found in wp-content/plugins/placeholder-images/LolitaFramework/Configuration/Modules/MetaBoxes.php:10
- > PHP Notice
Undefined variable: controls in wp-content/plugins/placeholder-images/LolitaFramework/Configuration/views/meta_box_with_controls.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function placeholderimages\\get_bloginfo() in wp-content/plugins/placeholder-images/LolitaFramework/LolitaFramework.php:62
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: A description for screenshot #1 is required in placeholder-images/assets to your readme.txt
- Contributors: The plugin contributors field is not present
placeholder-images/placeholderimages.php 85% from 13 tests
The main PHP file in "Placeholder images" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("placeholder-images.php" instead of "placeholderimages.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 detected9,553 lines of code in 139 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 96 | 994 | 3,967 | 5,930 |
TypeScript | 10 | 406 | 2,765 | 1,332 |
JavaScript | 8 | 152 | 981 | 960 |
JSON | 9 | 0 | 0 | 721 |
Sass | 5 | 73 | 1 | 500 |
Markdown | 2 | 20 | 0 | 50 |
PO File | 2 | 6 | 8 | 34 |
YAML | 1 | 5 | 13 | 14 |
XML | 1 | 1 | 1 | 7 |
CSS | 5 | 0 | 5 | 5 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 9.37 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 73.00 |
Average method complexity | 2.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 21 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 68 | |
▷ Abstract classes | 3 | 4.41% |
▷ Concrete classes | 65 | 95.59% |
▷ Final classes | 0 | 0.00% |
Methods | 460 | |
▷ Static methods | 203 | 44.13% |
▷ Public methods | 405 | 88.04% |
▷ Protected methods | 12 | 2.61% |
▷ Private methods | 43 | 9.35% |
Functions | 6 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 6 | 100.00% |
Constants | 27 | |
▷ Global constants | 11 | 40.74% |
▷ Class constants | 16 | 59.26% |
▷ Public constants | 16 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.35MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
promo/icon-128x128.png | 7.86KB | 3.34KB | ▼ 57.48% |
promo/download.png | 43.08KB | 16.03KB | ▼ 62.80% |
promo/banner-1544x500.png | 106.19KB | 40.01KB | ▼ 62.32% |
promo/icon-256x256.png | 17.00KB | 6.83KB | ▼ 59.82% |
promo/icon-80x80.png | 4.43KB | 2.19KB | ▼ 50.45% |