84% custom-taxonomy-template

Code Review | Custom Taxonomy Template

WordPress plugin Custom Taxonomy Template scored84%from 54 tests.

About plugin

  • Plugin page: custom-taxonomy-t...
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.2-4.7.0
  • WordPress version: 6.3.1
  • First release: Jul 12, 2012
  • Latest release: Dec 13, 2016
  • Number of updates: 7
  • Update frequency: every 231.9 days
  • Top authors: bainternet (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /4,704 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
This plugin's installer ran successfully

Server metrics [RAM: ▼1.93MB] [CPU: ▼357,026.47ms] Passed 4 tests

An overview of server-side resources used by Custom Taxonomy Template
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /11.16 ▲7.651,435,404.42 ▲1,435,357.57
Dashboard /wp-admin3.37 ▼7.7850.18 ▼1,428,100.34
Posts /wp-admin/edit.php3.42 ▲0.0251.79 ▲3.18
Add New Post /wp-admin/post-new.php5.95 ▲0.0290.91 ▼8.86
Media Library /wp-admin/upload.php3.29 ▲0.0236.22 ▲0.16

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Custom Taxonomy Template
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.26 ▼0.011.82 ▲0.1246.48 ▲0.87
Dashboard /wp-admin2,189 ▲155.49 ▼0.0689.05 ▼17.2741.54 ▼1.76
Posts /wp-admin/edit.php2,097 ▼02.00 ▲0.0636.63 ▲0.3034.94 ▲0.39
Add New Post /wp-admin/post-new.php1,526 ▼023.44 ▲0.39675.53 ▲28.5362.47 ▲5.86
Media Library /wp-admin/upload.php1,400 ▼04.19 ▼0.04101.34 ▼4.0644.07 ▲0.31

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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 take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/custom-taxonomy-template/custom-taxonomy-template.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: custom template, taxonomy, taxonomy theme, taxonomy template

custom-taxonomy-template/custom-taxonomy-template.php Passed 13 tests

The primary PHP file in "Custom Taxonomy Template" version 0.2 is used by WordPress to initiate all plugin functionality
84 characters long description:
This plugin lets you select a specific template for a taxomony term, just like pages

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
Success! There were no dangerous files found in this plugin88 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1158388

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.83
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin