89% tl-auto-feature-image

Code Review | TL Auto Feature Image

WordPress plugin TL Auto Feature Image scored89%from 54 tests.

About plugin

  • Plugin page: tl-auto-feature-i...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.9.2
  • WordPress version: 6.3.1
  • First release: Feb 13, 2021
  • Latest release: Mar 27, 2022
  • Number of updates: 5
  • Update frequency: every 81.4 days
  • Top authors: techsurf (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /2,463 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼9.62ms] Passed 4 tests

Server-side resources used by TL Auto Feature Image
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0134.16 ▼6.13
Dashboard /wp-admin3.32 ▲0.0241.38 ▼6.62
Posts /wp-admin/edit.php3.37 ▲0.0239.10 ▼5.83
Add New Post /wp-admin/post-new.php5.90 ▲0.0277.92 ▼19.90
Media Library /wp-admin/upload.php3.24 ▲0.0134.12 ▲2.68
TL Auto Feature Image /wp-admin/options-general.php?page=auto-feature-image3.2132.21

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for TL Auto Feature Image
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.31 ▼1.073.81 ▲2.1638.47 ▼5.75
Dashboard /wp-admin2,210 ▲194.88 ▲0.04111.19 ▲8.0441.42 ▼1.56
Posts /wp-admin/edit.php2,090 ▲12.05 ▲0.0134.73 ▼0.7929.76 ▼7.16
Add New Post /wp-admin/post-new.php1,549 ▲3023.09 ▲0.02642.54 ▼32.4352.53 ▲0.18
Media Library /wp-admin/upload.php1,392 ▲74.20 ▼0.0296.75 ▼4.5143.25 ▼0.76
TL Auto Feature Image /wp-admin/options-general.php?page=auto-feature-image7892.1626.6026.68

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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 did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected


Plugin configuration 93% from 29 tests

readme.txt 94% 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 need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === tl-auto-feature-image === )
The official readme.txt is a good inspiration

tl-auto-feature-image/tl-auto-feature-img.php 92% from 13 tests

"TL Auto Feature Image" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("tl-auto-feature-image.php" instead of "tl-auto-feature-img.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected99 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
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 functions5100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png11.36KB5.00KB▼ 56.00%