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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▲0.25ms] Passed 4 tests
This is a short check of server-side resources used by Media Library Thumbnail Enhancer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 41.67 ▼1.47 |
Dashboard /wp-admin | 3.34 ▲0.03 | 49.79 ▼0.80 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.88 ▼3.01 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 92.65 ▲6.26 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 42.09 ▲6.64 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Media Library Thumbnail Enhancer
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲30 | 14.39 ▼0.34 | 1.86 ▲0.10 | 43.40 ▼0.67 |
Dashboard /wp-admin | 2,197 ▲16 | 5.63 ▼0.08 | 90.30 ▼15.23 | 37.34 ▼7.98 |
Posts /wp-admin/edit.php | 2,105 ▲2 | 2.02 ▼0.00 | 39.41 ▲1.87 | 35.35 ▼3.71 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.27 ▲0.05 | 678.20 ▼71.58 | 52.55 ▼13.89 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.17 ▼0.00 | 99.45 ▼11.44 | 43.04 ▼5.91 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
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
Even though everything seems fine, this is not 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 take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/media-thumbnail-enlarger/media-thumbnail-enlarger.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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
These attributes need to be fixed:
- Screenshots: Add descriptions for screenshots #2, #3 in media-thumbnail-enlarger/assets to your readme.txt
media-thumbnail-enlarger/media-thumbnail-enlarger.php Passed 13 tests
The main file in "Media Library Thumbnail Enhancer" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
114 characters long description:
Enhances media library thumbnails by making them larger and replacing the bundled icons with scalable SVG versions
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected190 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 47 | 19 | 87 |
SVG | 8 | 0 | 8 | 86 |
CSS | 1 | 4 | 1 | 17 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
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 | 9 | |
▷ Named functions | 9 | 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 Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icons/default/spreadsheet.png | 1.81KB | 1.18KB | ▼ 34.95% |
icons/default/video.png | 1.62KB | 0.85KB | ▼ 47.32% |
icons/default/text.png | 1.78KB | 1.14KB | ▼ 36.00% |
icons/default/audio.png | 2.58KB | 2.10KB | ▼ 18.85% |
icons/default/code.png | 2.28KB | 1.54KB | ▼ 32.59% |