Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.43ms] Passed 4 tests
An overview of server-side resources used by Media Placeholders
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.73 ▼0.07 |
Dashboard /wp-admin | 3.31 ▲0.00 | 52.52 ▲6.74 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.02 ▼2.45 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.72 ▼15.55 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.86 ▲0.36 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Media Placeholders
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.27 ▼1.11 | 1.71 ▼0.39 | 41.13 ▼5.12 |
Dashboard /wp-admin | 2,209 ▲18 | 5.88 ▼0.02 | 97.96 ▼3.62 | 39.10 ▼6.01 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 1.99 ▼0.01 | 36.42 ▼4.78 | 33.88 ▼4.09 |
Add New Post /wp-admin/post-new.php | 1,537 ▲18 | 23.23 ▲0.49 | 673.04 ▲17.40 | 60.37 ▼1.93 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.16 ▼0.08 | 104.76 ▲0.33 | 50.59 ▲3.75 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/media-placeholders/media-placeholders.php:190
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 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: 404, development, uploads, placeholders, images
media-placeholders/media-placeholders.php Passed 13 tests
The primary PHP file in "Media Placeholders" version 0.9.2 is used by WordPress to initiate all plugin functionality
140 characters long description:
Redirect requests to non-existent uploaded images to a placeholder service like placehold.it or placekitten.com. For use during development.
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
Everything looks great! No dangerous files found in this plugin523 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 45 | 105 | 284 |
Bourne Again Shell | 1 | 30 | 10 | 110 |
Markdown | 4 | 26 | 0 | 74 |
Bourne Shell | 2 | 12 | 11 | 36 |
YAML | 1 | 4 | 0 | 19 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 19.50 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 7 | |
▷ Static methods | 5 | 71.43% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 4 | 100.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
No PNG files were detected