84% taxonomy-templates

Code Review | Taxonomy Templates

WordPress plugin Taxonomy Templates scored84%from 54 tests.

About plugin

  • Plugin page: taxonomy-templates
  • Plugin version: 0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2.1-6.0.1
  • WordPress version: 6.3.1
  • First release: Feb 22, 2012
  • Latest release: Jul 27, 2022
  • Number of updates: 7
  • Update frequency: every 544.1 days
  • Top authors: madjax (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,818 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.42ms] Passed 4 tests

A check of server-side resources used by Taxonomy Templates
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.57 ▼1.18
Dashboard /wp-admin3.31 ▲0.0144.79 ▼5.29
Posts /wp-admin/edit.php3.36 ▲0.0047.81 ▲2.38
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.47 ▼5.57
Media Library /wp-admin/upload.php3.23 ▲0.0044.76 ▲13.48

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Taxonomy Templates
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.17 ▼1.421.69 ▲0.1144.09 ▼3.38
Dashboard /wp-admin2,209 ▲184.88 ▲0.00102.90 ▼14.4638.14 ▼6.45
Posts /wp-admin/edit.php2,089 ▼01.98 ▼0.0441.38 ▲4.8835.27 ▲3.73
Add New Post /wp-admin/post-new.php1,533 ▲1423.28 ▲0.39657.36 ▼5.9553.10 ▼4.22
Media Library /wp-admin/upload.php1,385 ▼34.16 ▼0.14113.13 ▲13.7147.80 ▲0.59

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

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 everything seems fine, this is not an exhaustive test

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 fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/taxonomy-templates/taxonomy-templates.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: templates, taxonomy, category, custom templates, tag

taxonomy-templates/taxonomy-templates.php Passed 13 tests

The principal PHP file in "Taxonomy Templates" v. 0.4 is loaded by WordPress automatically on each request
76 characters long description:
Allows user selection of theme taxonomy templates, much like page templates.

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
Good job! No executable or dangerous file extensions detected111 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12714111

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.68
Average class complexity35.00
▷ Minimum class complexity35.00
▷ Maximum class complexity35.00
Average method complexity5.25
▷ Minimum method complexity3.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.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

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin