84% regenerate-thumbnails-html

Code Review | Regenerate Thumbnails HTML

WordPress plugin Regenerate Thumbnails HTML scored84%from 54 tests.

About plugin

  • Plugin page: regenerate-thumbn...
  • Plugin version: 0.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.0-4.7.2
  • WordPress version: 6.3.1
  • First release: Jan 28, 2017
  • Latest release: Feb 1, 2017
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: TigrouMeow (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

40+ active /2,707 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.83 ▼1.77
Dashboard /wp-admin3.33 ▲0.0346.23 ▼1.09
Posts /wp-admin/edit.php3.44 ▲0.0949.09 ▲0.52
Add New Post /wp-admin/post-new.php5.91 ▲0.0288.12 ▼16.12
Media Library /wp-admin/upload.php3.25 ▲0.0237.64 ▲4.44
Dashboard /wp-admin/admin.php?page=meowapps-main-menu3.2231.07
Regenerate Thumbnails HTML /wp-admin/admin.php?page=regenerate-thumbnails-html3.2232.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.21 ▼1.174.50 ▲2.8743.59 ▼11.65
Dashboard /wp-admin2,231 ▲435.90 ▲0.98104.72 ▲0.2547.47 ▲3.07
Posts /wp-admin/edit.php2,114 ▲252.03 ▲0.0739.43 ▼0.8134.26 ▼0.00
Add New Post /wp-admin/post-new.php1,549 ▲2823.18 ▼0.04648.06 ▲55.2953.73 ▼3.93
Media Library /wp-admin/upload.php1,413 ▲254.23 ▼0.00101.02 ▲4.6442.06 ▲0.79
Dashboard /wp-admin/admin.php?page=meowapps-main-menu1,0052.0730.6930.47
Regenerate Thumbnails HTML /wp-admin/admin.php?page=regenerate-thumbnails-html9612.0629.0829.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

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
You can look at the official readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP210044621
CSS15612254

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 code0.38
Average class complexity51.00
▷ Minimum class complexity37.00
▷ Maximum class complexity65.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity61.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods25
▷ Static methods14.00%
▷ Public methods2496.00%
▷ Protected methods00.00%
▷ Private methods14.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
common/img/wpengine.png22.02KB23.25KB0.00%
common/img/meowapps.png3.54KB3.59KB0.00%