84% term-thumbnails

Code Review | Term Thumbnails

WordPress plugin Term Thumbnails scored84%from 54 tests.

About plugin

  • Plugin page: term-thumbnails
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.0
  • WordPress version: 6.3.1
  • First release: Sep 11, 2014
  • Latest release: Sep 18, 2014
  • Number of updates: 6
  • Update frequency: every 1.5 days
  • Top authors: Horttcore (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,243 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼5.48ms] Passed 4 tests

An overview of server-side resources used by Term Thumbnails
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.01 ▼8.26
Dashboard /wp-admin3.42 ▲0.1245.90 ▼4.09
Posts /wp-admin/edit.php3.54 ▲0.1847.93 ▲2.65
Add New Post /wp-admin/post-new.php6.00 ▲0.1295.12 ▼12.22
Media Library /wp-admin/upload.php3.34 ▲0.1237.45 ▲7.11

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Term Thumbnails
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.25 ▼1.144.45 ▲1.8746.17 ▲2.95
Dashboard /wp-admin2,209 ▲264.86 ▼0.10110.81 ▲2.6041.11 ▲1.41
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0140.66 ▲4.8434.18 ▲2.45
Add New Post /wp-admin/post-new.php1,537 ▲423.19 ▲0.08720.50 ▲81.5457.02 ▲1.94
Media Library /wp-admin/upload.php1,385 ▼64.30 ▲0.0999.18 ▲2.6446.74 ▲3.95

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

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
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
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/term-thumbnails/classes/class.term-thumbnails-admin.php
    • > /wp-content/plugins/term-thumbnails/term-thumbnails.php
    • > /wp-content/plugins/term-thumbnails/inc/template-tags.php

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

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Term listing), #2 (Term listing with image), #3 (Term edit page), #4 (Term edit page with image)
Please take inspiration from this readme.txt

term-thumbnails/term-thumbnails.php Passed 13 tests

The entry point to "Term Thumbnails" version 1.0.2 is a PHP file that has certain tags in its header comment area
25 characters long description:
Post Thumbnails for Terms

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
Everything looks great! No dangerous files found in this plugin351 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP4149182199
JavaScript141282
Markdown125041
PO File141229

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods1487.50%
▷ Protected methods212.50%
▷ Private methods00.00%
Functions4
▷ Named functions4100.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
4 PNG files occupy 0.13MB with 0.08MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png40.36KB16.54KB▼ 59.03%
screenshot-4.png35.97KB15.64KB▼ 56.52%
screenshot-3.png28.84KB12.19KB▼ 57.73%
screenshot-1.png31.14KB12.92KB▼ 58.51%