84% sf-taxonomy-thumbnail

Code Review | Taxonomy Thumbnail

WordPress plugin Taxonomy Thumbnail scored84%from 54 tests.

About plugin

  • Plugin page: sf-taxonomy-thumb...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.5.2
  • WordPress version: 6.3.1
  • First release: Jun 15, 2015
  • Latest release: May 30, 2016
  • Number of updates: 15
  • Update frequency: every 23.3 days
  • Top authors: GregLone (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

6,000+ active /42,101 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼10.06ms] Passed 4 tests

Server-side resources used by Taxonomy Thumbnail
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.65 ▼5.02
Dashboard /wp-admin3.39 ▲0.0450.78 ▼13.17
Posts /wp-admin/edit.php3.50 ▲0.1546.44 ▼0.36
Add New Post /wp-admin/post-new.php5.97 ▲0.0882.00 ▼21.68
Media Library /wp-admin/upload.php3.31 ▲0.0840.86 ▲5.72

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
sftth_version
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Taxonomy Thumbnail
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.21 ▼1.101.91 ▼0.1645.05 ▲2.17
Dashboard /wp-admin2,203 ▲155.85 ▲0.98110.87 ▼7.1742.97 ▼2.59
Posts /wp-admin/edit.php2,089 ▼02.13 ▲0.1135.26 ▼0.4333.88 ▼2.64
Add New Post /wp-admin/post-new.php1,534 ▲2023.25 ▲5.57685.01 ▲9.0960.44 ▼5.73
Media Library /wp-admin/upload.php1,388 ▲34.21 ▼0.0293.53 ▼6.4440.45 ▼2.72

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
  • 11× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/sf-taxonomy-thumbnail/inc/compat/filters.php
    • > /wp-content/plugins/sf-taxonomy-thumbnail/sf-taxonomy-thumbnail.php
    • > /wp-content/plugins/sf-taxonomy-thumbnail/inc/filters.php
    • > /wp-content/plugins/sf-taxonomy-thumbnail/inc/utilities.php
    • > /wp-content/plugins/sf-taxonomy-thumbnail/inc/template-tags.php
    • > /wp-content/plugins/sf-taxonomy-thumbnail/inc/compat/template-tags.php
    • > /wp-content/plugins/sf-taxonomy-thumbnail/inc/compat/option.php
    • > /wp-content/plugins/sf-taxonomy-thumbnail/inc/admin-and-ajax.php
    • > /wp-content/plugins/sf-taxonomy-thumbnail/inc/admin.php
    • > /wp-content/plugins/sf-taxonomy-thumbnail/inc/migrate.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 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
5 plugin tags: taxonomy, thumbnail, category, image, dev

sf-taxonomy-thumbnail/sf-taxonomy-thumbnail.php Passed 13 tests

The main file in "Taxonomy Thumbnail" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
39 characters long description:
Add a thumbnail to your taxonomy terms.

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
Good job! No executable or dangerous file extensions detected970 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP12271651716
JavaScript23422139
CSS21075
PO File112440

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.56
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%
Functions47
▷ Named functions47100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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