88% advanced-category-template

Code Review | Advanced Category Template

WordPress plugin Advanced Category Template scored 88% from 54 tests.

About plugin

  • Plugin page: advanced-category...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2.1
  • WordPress version: 5.9.2
  • First release: May 8, 2015
  • Latest release: Jul 3, 2015
  • Number of updates: 12
  • Update frequency: every 4.7 days
  • Top authors: praveen_goswami (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

1,000+ active / 62,118 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼290.46ms] Passed 4 tests

A check of server-side resources used by Advanced Category Template
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0251.56 ▲1.24
Dashboard /wp-admin3.43 ▲0.0335.98 ▲3.00
Posts /wp-admin/edit.php3.66 ▲0.0243.65 ▲7.06
Add New Post /wp-admin/post-new.php6.91 ▼0.0697.24 ▼1,160.02
Media Library /wp-admin/upload.php3.31 ▲0.0123.05 ▼6.04

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 2 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Advanced Category Template
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,784 ▲4015.86 ▲0.086.98 ▲0.032.26 ▼0.01
Dashboard /wp-admin2,913 ▲526.25 ▲0.01112.73 ▼18.64174.14 ▲17.58
Posts /wp-admin/edit.php2,714 ▲233.25 ▲0.0166.06 ▲3.52137.35 ▼4.37
Add New Post /wp-admin/post-new.php1,676 ▼7617.28 ▼4.69385.91 ▼84.57192.15 ▲34.09
Media Library /wp-admin/upload.php1,717 ▲195.49 ▼0.03120.55 ▼16.32199.29 ▲10.02

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 50% from 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 0% 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
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/advanced-category-template/advavanced-category-template.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_taxonomies() in wp-content/plugins/advanced-category-template/_form.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Donate link: Please fix this invalid URI: ""
  • Tags: Too many tags (21 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

advanced-category-template/advavanced-category-template.php 92% from 13 tests

The main file in "Advanced Category Template" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("advanced-category-template.php" instead of "advavanced-category-template.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin277 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
ico.png0.45KB0.32KB▼ 29.93%