Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼4.06ms] Passed 4 tests
Server-side resources used by Regenerate Thumbnails
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 42.87 ▲3.30 |
Dashboard /wp-admin | 3.50 ▲0.16 | 43.78 ▼12.97 |
Posts /wp-admin/edit.php | 3.61 ▲0.26 | 45.13 ▼7.10 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 90.39 ▲4.05 |
Media Library /wp-admin/upload.php | 3.42 ▲0.20 | 34.46 ▲0.53 |
Regenerate Thumbnails /wp-admin/tools.php?page=regenerate-thumbnails | 3.41 | 32.61 |
Server storage [IO: ▲0.22MB] [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: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Regenerate Thumbnails
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.62 ▼1.06 | 1.62 ▼0.34 | 40.88 ▼8.62 |
Dashboard /wp-admin | 2,213 ▲22 | 4.86 ▼0.02 | 109.27 ▼4.15 | 44.37 ▲4.01 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.05 ▲0.05 | 39.69 ▼7.49 | 34.50 ▼4.64 |
Add New Post /wp-admin/post-new.php | 1,517 ▼21 | 17.65 ▼5.40 | 664.29 ▲6.04 | 54.66 ▲3.66 |
Media Library /wp-admin/upload.php | 1,396 ▲5 | 4.18 ▼0.06 | 99.25 ▼1.28 | 41.73 ▼2.35 |
Regenerate Thumbnails /wp-admin/tools.php?page=regenerate-thumbnails | 951 | 2.83 | 57.05 | 29.46 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- 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)
The smoke test was a success, however most plugin functionality was not tested
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 errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/regenerate-thumbnails/includes/class-regeneratethumbnails-rest-controller.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/regenerate-thumbnails/regenerate-thumbnails.php:570
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: thumbnails, post thumbnails, thumbnail, post thumbnail
regenerate-thumbnails/regenerate-thumbnails.php Passed 13 tests
The main PHP file in "Regenerate Thumbnails" ver. 3.1.6 adds more information about the plugin and also serves as the entry point for this plugin
112 characters long description:
Regenerate the thumbnails for one or more of your image uploads. Useful when changing their sizes or your theme.
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 detected962 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 226 | 449 | 929 |
CSS | 1 | 0 | 1 | 31 |
JavaScript | 2 | 0 | 1 | 2 |
PHP code Passed 2 tests
An overview 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.52 |
Average class complexity | 48.67 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 87.00 |
Average method complexity | 4.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 3 | 7.89% |
▷ Public methods | 36 | 94.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 5.26% |
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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-bg_inset-hard_100_fcfdfd_1x100.png | 0.29KB | 0.10KB | ▼ 65.41% |
css/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png | 5.69KB | 2.08KB | ▼ 63.46% |