83% post-thumbnail-column

Code Review | Post Thumbnail Column

WordPress plugin Post Thumbnail Column scored83%from 54 tests.

About plugin

  • Plugin page: post-thumbnail-co...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9
  • WordPress version: 6.3.1
  • First release: May 7, 2014
  • Latest release: May 25, 2014
  • Number of updates: 13
  • Update frequency: every 1.4 days
  • Top authors: silver530 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /1,614 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

Server-side resources used by Post Thumbnail Column
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.03 ▼0.49
Dashboard /wp-admin3.31 ▼0.0352.05 ▼11.55
Posts /wp-admin/edit.php3.37 ▲0.0148.12 ▼3.65
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.21 ▼19.03
Media Library /wp-admin/upload.php3.24 ▲0.0138.76 ▲0.74

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Post Thumbnail Column
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲5414.35 ▲0.071.93 ▲0.1645.30 ▲1.34
Dashboard /wp-admin2,198 ▲205.60 ▼0.1595.14 ▼17.6042.17 ▲2.47
Posts /wp-admin/edit.php2,109 ▲62.00 ▲0.0436.98 ▼6.6934.78 ▼1.90
Add New Post /wp-admin/post-new.php1,526 ▼023.33 ▲0.10670.07 ▼51.7856.59 ▲2.25
Media Library /wp-admin/upload.php1,397 ▼34.17 ▲0.03101.10 ▼28.5348.65 ▼2.23

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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/post-thumbnail-column/post-thumbnail-column.php:41

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 90% from 29 tests

readme.txt 88% 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 require attention:
  • Screenshots: Add an image for screenshot #1 (screenshot-1.png)
  • Tags: Too many tags (21 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

post-thumbnail-column/post-thumbnail-column.php 92% from 13 tests

This is the main PHP file of "Post Thumbnail Column" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected958 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PO File44101,349929
PHP2193029

PHP code Passed 2 tests

A short 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
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
1 PNG file occupies 0.10MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png103.72KB31.83KB▼ 69.32%