84% thumbnail-upscale

Code Review | Thumbnail Upscale

WordPress plugin Thumbnail Upscale scored84%from 54 tests.

About plugin

  • Plugin page: thumbnail-upscale
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.6
  • WordPress version: 6.3.1
  • First release: Aug 26, 2013
  • Latest release: Jul 29, 2016
  • Number of updates: 11
  • Update frequency: every 97.1 days
  • Top authors: khromov (100%)

Code review

54 tests

User reviews

21 reviews

Install metrics

6,000+ active /39,264 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 gracefully, with no errors

Server metrics [RAM: ▼0.16MB] [CPU: ▼26,522.40ms] Passed 4 tests

This is a short check of server-side resources used by Thumbnail Upscale
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▼0.6242.38 ▼106,059.83
Dashboard /wp-admin3.35 ▼0.0349.84 ▼24.29
Posts /wp-admin/edit.php3.40 ▲0.0153.02 ▼0.49
Add New Post /wp-admin/post-new.php5.94 ▲0.0189.22 ▼4.99
Media Library /wp-admin/upload.php3.28 ▲0.0142.19 ▲6.07

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Thumbnail Upscale: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.11 ▼0.192.08 ▲0.0538.07 ▼6.52
Dashboard /wp-admin2,198 ▲215.57 ▼0.0087.53 ▼8.9739.91 ▼4.18
Posts /wp-admin/edit.php2,100 ▲31.94 ▼0.0133.94 ▼4.4937.22 ▲1.89
Add New Post /wp-admin/post-new.php1,526 ▼1123.07 ▲4.94637.07 ▲13.0351.37 ▼14.99
Media Library /wp-admin/upload.php1,400 ▲34.20 ▼0.0598.53 ▼1.8345.95 ▲1.14

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/thumbnail-upscale/thumbnail-upscale.php:49

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: thumbnails, thumbnail, images, image, editor

thumbnail-upscale/thumbnail-upscale.php Passed 13 tests

"Thumbnail Upscale" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
59 characters long description:
Enables upscaling of thumbnails for small media attachments

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin28 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP191228

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity7.00
▷ Minimum method complexity7.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods1100.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin