93% automatic-thumbnail

Code Review | Auto Thumbnails

WordPress plugin Auto Thumbnails scored 93% from 54 tests.

About plugin

  • Plugin page: automatic-thumbnail
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.0
  • WordPress version: 5.8.1
  • First release: Nov 4, 2014
  • Latest release: Nov 5, 2014
  • Number of updates: 14
  • Update frequency: every 0.1 days
  • Top authors: gapgag55 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 4,457 total downloads


Plugin footprint Passed 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 gracefully, with no errors

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

This is a short check of server-side resources used by Auto Thumbnails
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1234.45 ▲11.75
Dashboard /wp-admin3.06 ▲0.0142.72 ▼5.59
Posts /wp-admin/edit.php3.12 ▲0.0143.79 ▼0.33
Add New Post /wp-admin/post-new.php5.42 ▼0.0186.36 ▼556.82
Media Library /wp-admin/upload.php3.01 ▲0.0028.92 ▼0.95

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Auto Thumbnails: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.81 ▲0.227.76 ▼0.1848.66 ▼1.81
Dashboard /wp-admin2,970 ▲365.92 ▲0.01138.39 ▼18.39100.08 ▼5.46
Posts /wp-admin/edit.php2,739 ▼02.68 ▼0.0164.27 ▼2.7786.35 ▼3.68
Add New Post /wp-admin/post-new.php1,872 ▲18919.15 ▲0.34392.47 ▲13.97107.97 ▼8.41
Media Library /wp-admin/upload.php1,810 ▼05.01 ▲0.01152.59 ▼12.35118.91 ▼3.23

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/automatic-thumbnail/index.php:40

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Donate link: Invalid URI found ("")
The official readme.txt is a good inspiration

automatic-thumbnail/index.php 85% from 13 tests

The main file in "Auto Thumbnails" v. 1.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:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("automatic-thumbnail.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin24 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

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.17
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin