89% advanced-category-and-custom-taxonomy-image

Code Review | Advanced Category and Custom Taxonomy Image

WordPress plugin Advanced Category and Custom Taxonomy Image scored89%from 54 tests.

About plugin

  • Plugin page: advanced-category...
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: Mar 12, 2019
  • Latest release: Aug 27, 2023
  • Number of updates: 17
  • Update frequency: every 95.9 days
  • Top authors: sajjad67 (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /7,518 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.18MB] [CPU: ▼2.90ms] Passed 4 tests

This is a short check of server-side resources used by Advanced Category and Custom Taxonomy Image
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1538.64 ▼4.05
Dashboard /wp-admin3.54 ▲0.2453.52 ▲0.63
Posts /wp-admin/edit.php3.60 ▲0.2454.42 ▲2.55
Add New Post /wp-admin/post-new.php6.06 ▲0.1895.85 ▼6.84
Media Library /wp-admin/upload.php3.39 ▲0.1638.32 ▼1.33
Advanced Category & Taxonomy Image /wp-admin/options-general.php?page=advanced-cat-tax-image3.3843.93

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Advanced Category and Custom Taxonomy Image
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,934 ▲14814.81 ▲0.461.77 ▼0.5045.05 ▼0.69
Dashboard /wp-admin2,343 ▲1636.20 ▲0.62116.87 ▲13.8942.19 ▼2.71
Posts /wp-admin/edit.php2,272 ▲1693.29 ▲1.3253.57 ▲14.8933.54 ▼0.32
Add New Post /wp-admin/post-new.php1,533 ▲723.15 ▲0.13652.82 ▼49.1640.19 ▼12.87
Media Library /wp-admin/upload.php1,405 ▲84.16 ▼0.0878.70 ▼39.5545.34 ▼3.58
Advanced Category & Taxonomy Image /wp-admin/options-general.php?page=advanced-cat-tax-image1,0803.2152.9526.70

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • ad_cat_tax_img_basic_settings
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • ad_cat_tax_img_advanced_settings

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
5 plugin tags: featured image, category image, term image, taxonomy image, category logo

advanced-category-and-custom-taxonomy-image/wp-advanced-taxonomy-image.php 85% from 13 tests

"Advanced Category and Custom Taxonomy Image" version 1.0.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 178 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("advanced-category-and-custom-taxonomy-image.php" instead of "wp-advanced-taxonomy-image.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,523 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP34559081,496
JavaScript15223
CSS1004

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity69.33
▷ Minimum class complexity4.00
▷ Maximum class complexity134.00
Average method complexity3.52
▷ Minimum method complexity1.00
▷ Maximum method complexity77.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods74
▷ Static methods912.16%
▷ Public methods7195.95%
▷ Protected methods22.70%
▷ Private methods11.35%
Functions12
▷ Named functions541.67%
▷ Anonymous functions758.33%
Constants11
▷ Global constants218.18%
▷ Class constants981.82%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin