10% custom-post-taxonomy-hierarchy-seo

Code Review | Custom Post & Taxonomy Hierarchy SEO with Woocommerce Support

WordPress plugin Custom Post & Taxonomy Hierarchy SEO with Woocommerce Support scored10%from 54 tests.

About plugin

  • Plugin page: custom-post-taxon...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8
  • WordPress version: 6.3.1
  • First release: Apr 25, 2017
  • Latest release: Jun 30, 2017
  • Number of updates: 17
  • Update frequency: every 4.3 days
  • Top authors: bukssaayman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,304 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/custom-post-taxonomy-hierarchy-seo/includes/class-custom-post-tax-hierarchy-woocommerce-activator.php+33
    Non-static method Custom_Post_Tax_Hierarchy_Woocommerce::check_plugin_status() should not be called statically

Server metrics [RAM: ▲0.16MB] [CPU: ▲4.19ms] Passed 4 tests

Server-side resources used by Custom Post & Taxonomy Hierarchy SEO with Woocommerce Support
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1644.66 ▲7.01
Dashboard /wp-admin3.46 ▲0.1651.43 ▲5.20
Posts /wp-admin/edit.php3.56 ▲0.2054.14 ▲6.47
Add New Post /wp-admin/post-new.php6.06 ▲0.1891.47 ▼1.93
Media Library /wp-admin/upload.php3.39 ▲0.1643.58 ▲7.89

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options
cpth_settings_md5
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Custom Post & Taxonomy Hierarchy SEO with Woocommerce Support
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,905 ▲15913.71 ▼0.674.78 ▲3.1839.40 ▼1.22
Dashboard /wp-admin2,229 ▲374.85 ▼0.12104.82 ▼7.8439.97 ▼0.25
Posts /wp-admin/edit.php2,109 ▲202.00 ▲0.0138.01 ▲2.6235.25 ▲2.15
Add New Post /wp-admin/post-new.php1,535 ▲2123.27 ▲5.70643.41 ▼16.7075.02 ▲15.81
Media Library /wp-admin/upload.php1,408 ▲234.18 ▼0.0394.59 ▼5.9044.19 ▼1.85

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • cpth_settings_md5
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Custom_Post_Tax_Hierarchy_Woocommerce' not found in wp-content/plugins/custom-post-taxonomy-hierarchy-seo/includes/class-custom-post-tax-hierarchy-woocommerce-activator.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === custom-post-taxonomy-hierarchy-seo === )
The official readme.txt is a good inspiration

custom-post-taxonomy-hierarchy-seo/custom-post-tax-hierarchy.php 85% from 13 tests

The main PHP file in "Custom Post & Taxonomy Hierarchy SEO with Woocommerce Support" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("custom-post-taxonomy-hierarchy-seo.php" instead of "custom-post-tax-hierarchy.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Everything looks great! No dangerous files found in this plugin529 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP10179492518
JavaScript24546
JSON1005
CSS1040

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity10.43
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods48
▷ Static methods24.17%
▷ Public methods3777.08%
▷ Protected methods12.08%
▷ Private methods1020.83%
Functions3
▷ Named functions3100.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
PNG images were not found in this plugin