84% thumbnails

Code Review | Thumbnails

WordPress plugin Thumbnails scored84%from 54 tests.

About plugin

  • Plugin page: thumbnails
  • Plugin version: 1.1.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4.1
  • WordPress version: 6.3.1
  • First release: Nov 18, 2015
  • Latest release: Nov 21, 2023
  • Number of updates: 32
  • Update frequency: every 91.4 days
  • Top authors: satollo (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

8,000+ active /32,296 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.59ms] Passed 4 tests

Server-side resources used by Thumbnails
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.77 ▼2.91
Dashboard /wp-admin3.31 ▲0.0145.41 ▼6.59
Posts /wp-admin/edit.php3.36 ▲0.0048.49 ▼2.89
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.44 ▲2.03
Media Library /wp-admin/upload.php3.23 ▲0.0035.65 ▲3.38
Thumbnails /wp-admin/options-general.php?page=thumbnails/admin/options.php3.2631.30

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Thumbnails
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3214.67 ▲0.321.77 ▼0.3444.08 ▲0.97
Dashboard /wp-admin2,199 ▲285.60 ▲0.0791.41 ▲0.2440.67 ▼3.68
Posts /wp-admin/edit.php2,104 ▲11.94 ▼0.0440.73 ▲1.1135.73 ▲0.06
Add New Post /wp-admin/post-new.php1,529 ▲323.06 ▼0.03580.66 ▼52.3251.67 ▲5.23
Media Library /wp-admin/upload.php1,398 ▼24.19 ▼0.0296.40 ▼0.6041.12 ▲0.22
Thumbnails /wp-admin/options-general.php?page=thumbnails/admin/options.php1,0252.0124.4538.99

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/thumbnails/plugin.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: thumbnails, media

thumbnails/plugin.php 92% from 13 tests

The entry point to "Thumbnails" version 1.1.6 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("thumbnails.php" instead of "plugin.php")

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
Everything looks great! No dangerous files found in this plugin317 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP25347288
CSS15029

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity38.00
▷ Minimum class complexity38.00
▷ Maximum class complexity38.00
Average method complexity6.29
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.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
There are no PNG files in this plugin