Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼2.60ms] Passed 4 tests
Server-side resources used by Media Used Search
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.08 ▼3.77 |
Dashboard /wp-admin | 3.40 ▲0.10 | 47.31 ▼0.35 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 49.05 ▲1.65 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 92.31 ▼7.92 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 40.97 ▲9.43 |
Media Used Search /wp-admin/options-general.php?page=mus_admin | 3.30 | 35.14 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 12 new options
New WordPress options |
---|
widget_recent-posts |
mus_plg_post_types_opt_name |
mus_plg_ttl_omit_border |
mus_plg_post_metas |
theysaidso_admin_options |
widget_recent-comments |
mus_plg_ttl_omit_border_opt_name |
mus_plg_post_metas_opt_name |
can_compress_scripts |
db_upgraded |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Media Used Search
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲87 | 13.29 ▼1.00 | 1.86 ▲0.23 | 39.30 ▼4.28 |
Dashboard /wp-admin | 2,214 ▲40 | 4.93 ▼0.95 | 112.12 ▲6.78 | 42.44 ▼0.26 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.18 ▲0.21 | 43.58 ▲2.45 | 35.29 ▼0.78 |
Add New Post /wp-admin/post-new.php | 1,531 ▼6 | 18.33 ▼4.81 | 594.42 ▼89.45 | 57.69 ▼10.62 |
Media Library /wp-admin/upload.php | 1,390 ▲2 | 4.29 ▲0.03 | 98.08 ▼0.15 | 40.70 ▼3.56 |
Media Used Search /wp-admin/options-general.php?page=mus_admin | 943 | 2.27 | 24.36 | 26.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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 items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/media-used-search/bootstrap.php:32
- > PHP Fatal error
Uncaught Error: Class 'Media_Used_Search' not found in wp-content/plugins/media-used-search/admin.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Donate link: Invalid URI found ("")
- Screenshots: These screenshots require images: #1 (Image of the media list.), #2 (Image of the setting screen.)
media-used-search/bootstrap.php 85% from 13 tests
The principal PHP file in "Media Used Search" v. 1.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("media-used-search.php" instead of "bootstrap.php")
- Description: Keep the plugin description shorter than 140 characters (currently 207 characters long)
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
Good job! No executable or dangerous file extensions detected651 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 68 | 175 | 480 |
PO File | 1 | 26 | 61 | 67 |
Sass | 1 | 1 | 0 | 67 |
JavaScript | 2 | 2 | 5 | 36 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 73.00 |
▷ Minimum class complexity | 73.00 |
▷ Maximum class complexity | 73.00 |
Average method complexity | 3.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 28 | |
▷ Static methods | 1 | 3.57% |
▷ Public methods | 22 | 78.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 21.43% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.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
2 PNG files occupy 0.15MB with 0.11MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 65.63KB | 19.36KB | ▼ 70.51% |
screenshot-2.png | 87.35KB | 24.96KB | ▼ 71.43% |