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

Code Review | Advanced Category and Custom Taxonomy Image

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

About plugin

  • Plugin page: advanced-category...
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-5.6
  • WordPress version: 5.9.2
  • First release: Mar 12, 2019
  • Latest release: Jan 30, 2021
  • Number of updates: 15
  • Update frequency: every 46.1 days
  • Top authors: sajjad67 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

600+ active / 2,901 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.14MB] [CPU: ▼295.59ms] Passed 4 tests

A check of server-side resources used by Advanced Category and Custom Taxonomy Image
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2052.29 ▲0.44
Dashboard /wp-admin3.59 ▲0.1840.05 ▲8.53
Posts /wp-admin/edit.php3.82 ▲0.1842.22 ▲7.18
Add New Post /wp-admin/post-new.php7.06 ▲0.0796.94 ▼1,188.06
Media Library /wp-admin/upload.php3.44 ▲0.1523.22 ▼1.93
Advanced Category & Taxonomy Image /wp-admin/options-general.php?page=advanced-cat-tax-image3.4526.54

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 2 new options
New WordPress options
ad_cat_tax_img_advanced_settings
ad_cat_tax_img_basic_settings

Browser metrics Passed 4 tests

An overview of browser requirements for Advanced Category and Custom Taxonomy Image
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,966 ▲24417.80 ▲1.916.59 ▲0.512.43 ▼0.05
Dashboard /wp-admin3,095 ▲2348.06 ▲1.88142.57 ▲11.17170.19 ▲9.16
Posts /wp-admin/edit.php2,926 ▲2535.26 ▲2.0280.43 ▲15.62140.21 ▼0.65
Add New Post /wp-admin/post-new.php1,667 ▼3116.27 ▼4.93373.43 ▼74.64159.47 ▲2.43
Media Library /wp-admin/upload.php1,708 ▲105.51 ▲0.01106.40 ▼36.30183.37 ▼13.76
Advanced Category & Taxonomy Image /wp-admin/options-general.php?page=advanced-cat-tax-image1,3804.3476.86114.42

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 2 options
    • ad_cat_tax_img_advanced_settings
    • ad_cat_tax_img_basic_settings

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: featured image, category image, category logo, term image, taxonomy image

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

The main file in "Advanced Category and Custom Taxonomy Image" v. 1.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 178 characters long)
  • Main file name: Name the main plugin file the same as 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 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin1,368 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP34689081,346
JavaScript15218
CSS1004

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin