84% custom-taxonomy-templates

Code Review | Custom Taxonomy Templates

WordPress plugin Custom Taxonomy Templates scored 84% from 54 tests.

About plugin

  • Plugin page: custom-taxonomy-t...
  • Plugin version: 0.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.6.1
  • WordPress version: 6.3.1
  • First release: Mar 1, 2016
  • Latest release: Nov 21, 2016
  • Number of updates: 10
  • Update frequency: every 26.5 days
  • Top authors: shazdeh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 2,770 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.35ms] Passed 4 tests

Server-side resources used by Custom Taxonomy Templates
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0640.77 ▲0.63
Dashboard /wp-admin3.36 ▲0.0539.47 ▼10.01
Posts /wp-admin/edit.php3.41 ▲0.0546.47 ▲2.36
Add New Post /wp-admin/post-new.php5.94 ▲0.0581.77 ▼12.52
Media Library /wp-admin/upload.php3.28 ▲0.0531.90 ▲0.52

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Custom Taxonomy Templates
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.16 ▼1.241.73 ▼1.0543.72 ▼4.19
Dashboard /wp-admin2,209 ▲214.87 ▼0.21114.11 ▼4.4442.50 ▼2.88
Posts /wp-admin/edit.php2,092 ▲32.06 ▲0.0540.57 ▲3.5636.62 ▲3.25
Add New Post /wp-admin/post-new.php1,542 ▲1418.67 ▲0.31633.87 ▲2.6850.58 ▼2.91
Media Library /wp-admin/upload.php1,391 ▲34.22 ▼0.03101.78 ▼0.3945.18 ▲0.31

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-taxonomy-templates/custom-taxonomy-templates.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: category-template, template, category, custom-template, term...

custom-taxonomy-templates/custom-taxonomy-templates.php 92% from 13 tests

The primary PHP file in "Custom Taxonomy Templates" version 0.2.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin121 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12633121

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.36
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin