Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▲0.89ms] Passed 4 tests
Server-side resources used by Reset Thumbnails
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 41.36 ▲0.16 |
Dashboard /wp-admin | 3.46 ▲0.16 | 45.50 ▼3.06 |
Posts /wp-admin/edit.php | 3.57 ▲0.22 | 48.97 ▲5.33 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.18 | 95.19 ▲4.79 |
Media Library /wp-admin/upload.php | 3.38 ▲0.16 | 37.07 ▲1.68 |
Reset Thumbnails /wp-admin/options-general.php?page=Reset_Thumbnails_settings | 3.39 | 36.17 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Reset_Thumbnails_version |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Reset Thumbnails
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,916 ▲181 | 13.98 ▼0.40 | 5.37 ▲3.13 | 35.37 ▼6.77 |
Dashboard /wp-admin | 2,214 ▲25 | 5.88 ▲0.96 | 107.35 ▼14.86 | 43.81 ▼1.21 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.04 ▼0.00 | 39.37 ▲2.87 | 34.40 ▲2.80 |
Add New Post /wp-admin/post-new.php | 1,521 ▼12 | 23.36 ▼0.04 | 639.45 ▼14.59 | 53.45 ▼16.10 |
Media Library /wp-admin/upload.php | 1,393 ▲5 | 4.18 ▼0.01 | 95.92 ▼26.67 | 42.90 ▼3.46 |
Reset Thumbnails /wp-admin/options-general.php?page=Reset_Thumbnails_settings | 1,098 | 3.16 | 48.90 | 56.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- Reset_Thumbnails_version
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
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 Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=Reset_Thumbnails_settings
- > Network (severe)
wp-content/plugins/reset-thumbnails/assets/css/reset-thumbnails-reset-thumbnails-admin.css?ver=1.0.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Plugin Name: You should set the name of your plugin on the first line (
=== reset-thumbnails ===
) - Screenshots: Add an image for screenshot #1 (Screenshots in `/reset-thumbnails/screenshot.png` .)
reset-thumbnails/reset-thumbnails.php 92% from 13 tests
This is the main PHP file of "Reset Thumbnails" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("3.0.1" instead of "4.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,580 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 8 | 0 | 0 | 711 |
PHP | 7 | 194 | 383 | 641 |
JavaScript | 5 | 34 | 16 | 201 |
CSS | 1 | 4 | 0 | 27 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 3.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 2 | 4.76% |
▷ Public methods | 40 | 95.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.76% |
Functions | 1 | |
▷ Named functions | 1 | 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
1 PNG file occupies 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot.png | 80.16KB | 32.75KB | ▼ 59.14% |