Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼10.44ms] Passed 4 tests
A check of server-side resources used by Used Media Identifier
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.21 | 37.98 ▼3.72 |
Dashboard /wp-admin | 3.50 ▲0.15 | 46.20 ▼12.44 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 47.58 ▲2.09 |
Add New Post /wp-admin/post-new.php | 5.65 ▼0.23 | 71.81 ▼21.68 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 31.83 ▼3.91 |
Media Identifier Settings /wp-admin/options-general.php?page=media-identifier-settings | 3.39 | 31.35 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Used Media Identifier
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,962 ▲216 | 13.74 ▼0.64 | 4.66 ▲2.69 | 36.93 ▼6.02 |
Dashboard /wp-admin | 2,285 ▲94 | 4.83 ▼0.03 | 101.14 ▼5.42 | 41.91 ▲0.61 |
Posts /wp-admin/edit.php | 2,171 ▲79 | 2.04 ▲0.01 | 34.42 ▼2.89 | 35.23 ▲0.74 |
Add New Post /wp-admin/post-new.php | 1,592 ▲73 | 23.41 ▲0.22 | 633.75 ▼34.37 | 51.15 ▼4.96 |
Media Library /wp-admin/upload.php | 1,457 ▲69 | 4.19 ▼0.03 | 98.99 ▼0.60 | 42.85 ▼3.31 |
Media Identifier Settings /wp-admin/options-general.php?page=media-identifier-settings | 1,286 | 1.69 | 26.19 | 29.62 |
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
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=media-identifier-settings
- > Notice in wp-content/plugins/used-media-identifier/admin/class-used-media-identifier-admin.php+1070
Only variables should be passed by reference
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
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/used-media-identifier/admin/partials/used-media-identifier-admin-display.php
- > /wp-content/plugins/used-media-identifier/public/partials/used-media-identifier-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Plugin Name: Please specify the plugin name on the first line (
=== used-media-identifier ===
)
used-media-identifier/used-media-identifier.php Passed 13 tests
The primary PHP file in "Used Media Identifier" version 1.0.0 is used by WordPress to initiate all plugin functionality
69 characters long description:
This plugin is used to identify media image is used for any post type
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
No dangerous file extensions were detected1,430 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 235 | 601 | 1,388 |
CSS | 2 | 0 | 4 | 26 |
JavaScript | 2 | 7 | 27 | 16 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.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 | 31 | |
▷ Static methods | 2 | 6.45% |
▷ Public methods | 26 | 83.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.13% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/badge.png | 1.64KB | 0.63KB | ▼ 61.34% |