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.01MB] [CPU: ▼3.81ms] Passed 4 tests
This is a short check of server-side resources used by Thumbnail Cleaner
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.01 | 37.27 ▼1.60 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.63 ▼2.64 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 55.51 ▲7.05 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 84.89 ▼9.31 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 34.47 ▼1.68 |
Thumbnail Cleaner /wp-admin/tools.php?page=thumbnail-cleaner | 3.20 | 31.92 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Thumbnail Cleaner
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲75 | 13.64 ▼0.67 | 1.62 ▼0.44 | 38.48 ▼4.74 |
Dashboard /wp-admin | 2,216 ▲34 | 4.88 ▼1.00 | 109.84 ▼4.62 | 41.95 ▼1.91 |
Posts /wp-admin/edit.php | 2,102 ▲10 | 2.16 ▲0.12 | 40.49 ▲0.26 | 34.33 ▼5.41 |
Add New Post /wp-admin/post-new.php | 1,523 ▼22 | 23.30 ▲5.18 | 644.87 ▲10.56 | 52.92 ▼15.38 |
Media Library /wp-admin/upload.php | 1,398 ▲10 | 4.23 ▼0.02 | 95.67 ▼4.84 | 43.98 ▲1.26 |
Thumbnail Cleaner /wp-admin/tools.php?page=thumbnail-cleaner | 1,007 | 1.76 | 26.90 | 76.22 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Screenshots: Add an image for screenshot #1 (The main page from which you can control Thumbnail Cleaner.)
thumbnail-cleaner/thumbnail-cleaner.php Passed 13 tests
The main PHP file in "Thumbnail Cleaner" ver. 1.4.2 adds more information about the plugin and also serves as the entry point for this plugin
104 characters long description:
Cleans up your WordPress installation by deleting and regenerating all thumbnails to remove unused ones.
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
There were no executable files found in this plugin778 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 103 | 238 | 678 |
CSS | 2 | 15 | 12 | 59 |
SVG | 1 | 10 | 0 | 22 |
JavaScript | 1 | 3 | 12 | 19 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 40.00 |
▷ Minimum class complexity | 40.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 8.80 |
▷ Minimum method complexity | 3.00 |
▷ Maximum method complexity | 19.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
PNG images were not found in this plugin