Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.58ms] Passed 4 tests
Server-side resources used by Display Image Dimensions in Media Library
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.22 ▼2.43 |
Dashboard /wp-admin | 3.31 ▲0.00 | 53.08 ▼1.34 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 52.27 ▼2.35 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.37 ▼12.19 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 40.78 ▲4.59 |
Server storage [IO: ▲0.74MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Display Image Dimensions in Media Library
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.34 ▼0.01 | 1.99 ▲0.19 | 50.92 ▲5.04 |
Dashboard /wp-admin | 2,198 ▲20 | 5.62 ▼0.09 | 86.86 ▼22.54 | 40.65 ▼4.32 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 2.04 ▲0.07 | 36.09 ▼2.33 | 37.26 ▲0.76 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.23 ▲0.14 | 694.04 ▲8.83 | 46.85 ▼2.62 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.19 ▼0.03 | 101.31 ▲1.46 | 46.51 ▼1.50 |
Uninstaller [IO: ▲0.74MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The plugin did not uninstall successfully, leaving 8 files (0.74MB) in the plugin directory
- (new file) uninstall.php
- (new file) display-image-dimensions.php
- (new file) screenshot1.png
- (new file) screenshot-1.png
- (new file) readme.txt
- (new file) screenshot2.png
- (new file) upload.sh
- (new file) screenshot-2.png
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% 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 50% 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
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/display-image-dimensions-in-media-library/display-image-dimensions.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/display-image-dimensions-in-media-library/uninstall.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (Heading), #2 (Location)
display-image-dimensions-in-media-library/display-image-dimensions.php 85% from 13 tests
The primary PHP file in "Display Image Dimensions in Media Library" version 1.0.3 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("display-image-dimensions-in-media-library.php" instead of "display-image-dimensions.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin95 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 34 | 51 | 93 |
Bourne Shell | 1 | 2 | 0 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.73MB with 0.54MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot1.png | 33.60KB | 8.93KB | ▼ 73.42% |
screenshot2.png | 342.03KB | 87.57KB | ▼ 74.40% |
screenshot-1.png | 33.60KB | 8.93KB | ▼ 73.42% |
screenshot-2.png | 342.03KB | 87.57KB | ▼ 74.40% |