90% genesis-taxonomy-images

Code Review | Genesis Taxonomy Images

WordPress plugin Genesis Taxonomy Images scored90%from 54 tests.

About plugin

  • Plugin page: genesis-taxonomy-...
  • Plugin version: 2.0.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-6.4.0
  • WordPress version: 6.3.1
  • First release: Oct 30, 2013
  • Latest release: Nov 19, 2023
  • Number of updates: 60
  • Update frequency: every 61.2 days
  • Top authors: theMikeD (73.33%)studiograsshopper (28.33%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active /6,776 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

Analyzing server-side resources used by Genesis Taxonomy Images
This plugin does not affect your website's performance
Page Memory (MB) CPU Time (ms)
Home / 3.46 ▲0.00 31.66 ▼7.25
Dashboard /wp-admin 3.31 ▼0.04 41.51 ▼19.66
Posts /wp-admin/edit.php 3.36 ▲0.00 45.29 ▲0.13
Add New Post /wp-admin/post-new.php 5.89 ▲0.00 87.71 ▼1.21
Media Library /wp-admin/upload.php 3.23 ▲0.00 31.39 ▼2.37

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Genesis Taxonomy Images
There were no issues detected in relation to browser resource usage
Page Nodes Memory (MB) Script (ms) Layout (ms)
Home / 2,790 ▲28 14.69 ▲0.34 1.76 ▲0.07 36.75 ▼7.24
Dashboard /wp-admin 2,195 ▲21 5.60 ▲0.04 89.54 ▼12.17 39.00 ▼7.11
Posts /wp-admin/edit.php 2,100 ▼0 1.96 ▼0.06 39.53 ▼2.08 36.47 ▲1.59
Add New Post /wp-admin/post-new.php 1,531 ▲5 23.39 ▲0.41 597.04 ▼154.47 54.49 ▼0.06
Media Library /wp-admin/upload.php 1,403 ▲3 4.15 ▼0.03 98.20 ▼3.51 43.13 ▲1.22

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: taxonomy, genesis, term, image, featured...

genesis-taxonomy-images/genesis-taxonomy-images.php 92% from 13 tests

Analyzing the main PHP file in "Genesis Taxonomy Images" version 2.0.4
The following require your attention:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.0.0" instead of "4.4.0")

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 detected356 lines of code in 3 files:
Language Files Blank lines Comment lines Lines of code
PHP 3 115 416 356

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code 0.36
Average class complexity 26.00
▷ Minimum class complexity 10.00
▷ Maximum class complexity 42.00
Average method complexity 3.08
▷ Minimum method complexity 1.00
▷ Maximum method complexity 13.00
Code structure
Namespaces 1
Interfaces 0
Traits 0
Classes 2
▷ Abstract classes 0 0.00%
▷ Concrete classes 2 100.00%
▷ Final classes 0 0.00%
Methods 24
▷ Static methods 0 0.00%
▷ Public methods 10 41.67%
▷ Protected methods 8 33.33%
▷ Private methods 6 25.00%
Functions 5
▷ Named functions 4 80.00%
▷ Anonymous functions 1 20.00%
Constants 3
▷ Global constants 3 100.00%
▷ Class constants 0 0.00%
▷ Public constants 0 0.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
File Size - original Size - compressed Savings
assets/images/placeholder.png 2.43KB 2.92KB 0.00%