Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Parse error in wp-content/plugins/multisite-media-display/mutlisite-media-display.php+543
syntax error, unexpected end of file
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.06ms] Passed 4 tests
A check of server-side resources used by Multisite Media Display
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.27 ▲1.48 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.02 ▲2.60 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 41.69 ▼3.73 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.18 ▲1.60 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.06 ▼3.57 |
Server storage [IO: ▲2.63MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Multisite Media Display
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.59 ▼0.83 | 4.56 ▲2.60 | 40.70 ▼7.16 |
Dashboard /wp-admin | 2,203 ▲15 | 5.80 ▲0.70 | 94.04 ▼8.49 | 36.92 ▼7.70 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.06 ▲0.08 | 35.51 ▼1.28 | 31.88 ▼3.51 |
Add New Post /wp-admin/post-new.php | 1,519 ▼0 | 23.07 ▼0.01 | 624.13 ▼60.33 | 62.32 ▲0.34 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.18 ▲0.02 | 94.57 ▼5.01 | 41.09 ▼1.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/multisite-media-display/mutlisite-media-display.php on line 543
- > PHP Parse error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
1 plugin tags: multisite media display
multisite-media-display/mutlisite-media-display.php 92% from 13 tests
"Multisite Media Display" version 1.42's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("multisite-media-display.php" instead of "mutlisite-media-display.php")
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
Good job! No executable or dangerous file extensions detected391 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 46 | 110 | 386 |
XML | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This is a very shot review of 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.28 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 1.33MB with 1.19MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 117.80KB | 12.13KB | ▼ 89.71% |
assets/screenshot-1.png | 956.78KB | 114.34KB | ▼ 88.05% |
assets/icon-128x128.png | 77.04KB | 5.67KB | ▼ 92.64% |
assets/banner-772x250.png | 205.78KB | 25.21KB | ▼ 87.75% |