89% wp-recreate-thumbnails

Code Review | WP Recreate Thumbnails

WordPress plugin WP Recreate Thumbnails scored89%from 54 tests.

About plugin

  • Plugin page: wp-recreate-thumb...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.2
  • WordPress version: 6.3.1
  • First release: Aug 28, 2018
  • Latest release: Mar 30, 2023
  • Number of updates: 9
  • Update frequency: every 187.3 days
  • Top authors: yudiz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /752 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.58ms] Passed 4 tests

An overview of server-side resources used by WP Recreate Thumbnails
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0441.84 ▲6.22
Dashboard /wp-admin3.34 ▲0.0448.20 ▲3.44
Posts /wp-admin/edit.php3.40 ▲0.0442.71 ▼6.90
Add New Post /wp-admin/post-new.php5.95 ▲0.0678.87 ▼11.60
Media Library /wp-admin/upload.php3.27 ▲0.0441.27 ▲0.75

Server storage [IO: ▲1.16MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Recreate Thumbnails
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5514.35 ▲0.001.75 ▲0.1742.67 ▼4.39
Dashboard /wp-admin2,219 ▲395.56 ▼0.1191.43 ▲1.6637.83 ▼0.85
Posts /wp-admin/edit.php2,127 ▲272.01 ▼0.0134.14 ▼7.0135.66 ▼3.51
Add New Post /wp-admin/post-new.php1,550 ▲2423.48 ▼0.10675.43 ▲4.8453.53 ▼13.72
Media Library /wp-admin/upload.php1,427 ▲244.26 ▲0.03100.17 ▲3.2743.42 ▼0.96

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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 83% from 29 tests

readme.txt 75% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • License uri: Invalid URI found ("")
  • License: Empty string
  • Screenshots: Please add an image for screenshot #1 (2.)
  • Stable tag: Empty string
The official readme.txt is a good inspiration

wp-recreate-thumbnails/recreate-thumbnails.php 92% from 13 tests

The main file in "WP Recreate Thumbnails" v. 1.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-recreate-thumbnails.php" instead of "recreate-thumbnails.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin5,355 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
CSS30132,345
JavaScript22338183
PHP13013156

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin