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
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0031.66 ▼7.25
Dashboard /wp-admin3.31 ▼0.0441.51 ▼19.66
Posts /wp-admin/edit.php3.36 ▲0.0045.29 ▲0.13
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.71 ▼1.21
Media Library /wp-admin/upload.php3.23 ▲0.0031.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.69 ▲0.341.76 ▲0.0736.75 ▼7.24
Dashboard /wp-admin2,195 ▲215.60 ▲0.0489.54 ▼12.1739.00 ▼7.11
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.0639.53 ▼2.0836.47 ▲1.59
Add New Post /wp-admin/post-new.php1,531 ▲523.39 ▲0.41597.04 ▼154.4754.49 ▼0.06
Media Library /wp-admin/upload.php1,403 ▲34.15 ▼0.0398.20 ▼3.5143.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:
LanguageFilesBlank linesComment linesLines of code
PHP3115416356

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 code0.36
Average class complexity26.00
▷ Minimum class complexity10.00
▷ Maximum class complexity42.00
Average method complexity3.08
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods1041.67%
▷ Protected methods833.33%
▷ Private methods625.00%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/images/placeholder.png2.43KB2.92KB0.00%