Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.62ms] Passed 4 tests
Analyzing server-side resources used by Regenerate Thumbnails HTML
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.83 ▼1.77 |
Dashboard /wp-admin | 3.33 ▲0.03 | 46.23 ▼1.09 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 49.09 ▲0.52 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 88.12 ▼16.12 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.64 ▲4.44 |
Dashboard /wp-admin/admin.php?page=meowapps-main-menu | 3.22 | 31.07 |
Regenerate Thumbnails HTML /wp-admin/admin.php?page=regenerate-thumbnails-html | 3.22 | 32.63 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Regenerate Thumbnails HTML
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.21 ▼1.17 | 4.50 ▲2.87 | 43.59 ▼11.65 |
Dashboard /wp-admin | 2,231 ▲43 | 5.90 ▲0.98 | 104.72 ▲0.25 | 47.47 ▲3.07 |
Posts /wp-admin/edit.php | 2,114 ▲25 | 2.03 ▲0.07 | 39.43 ▼0.81 | 34.26 ▼0.00 |
Add New Post /wp-admin/post-new.php | 1,549 ▲28 | 23.18 ▼0.04 | 648.06 ▲55.29 | 53.73 ▼3.93 |
Media Library /wp-admin/upload.php | 1,413 ▲25 | 4.23 ▼0.00 | 101.02 ▲4.64 | 42.06 ▲0.79 |
Dashboard /wp-admin/admin.php?page=meowapps-main-menu | 1,005 | 2.07 | 30.69 | 30.47 |
Regenerate Thumbnails HTML /wp-admin/admin.php?page=regenerate-thumbnails-html | 961 | 2.06 | 29.08 | 29.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
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 is_admin() in wp-content/plugins/regenerate-thumbnails-html/regenerate-thumbnails-html.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
regenerate-thumbnails-html/regenerate-thumbnails-html.php Passed 13 tests
This is the main PHP file of "Regenerate Thumbnails HTML" version 0.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
99 characters long description:
This plugin updates the HTML for your images. Useful when switching between image sizes and themes.
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
No dangerous file extensions were detected875 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 100 | 44 | 621 |
CSS | 1 | 56 | 12 | 254 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 51.00 |
▷ Minimum class complexity | 37.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 61.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 1 | 4.00% |
▷ Public methods | 24 | 96.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 compressed PNG files occupy 0.02MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
common/img/wpengine.png | 22.02KB | 23.25KB | 0.00% |
common/img/meowapps.png | 3.54KB | 3.59KB | 0.00% |