68% dxtag-auto-listings

Code Review | DxTag - SEO-Boosting WooCommerce Listing Generator

WordPress plugin DxTag - SEO-Boosting WooCommerce Listing Generator scored68%from 54 tests.

About plugin

  • Plugin page: dxtag-auto-listings
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.3
  • WordPress version: 6.3.1
  • First release: Nov 9, 2021
  • Latest release: Aug 7, 2023
  • Number of updates: 13
  • Update frequency: every 48.9 days
  • Top authors: Elvin.Haci (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /741 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.78MB] [CPU: ▼36.96ms] Passed 4 tests

Server-side resources used by DxTag - SEO-Boosting WooCommerce Listing Generator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1738.31 ▼5.08
Dashboard /wp-admin3.17 ▼0.1424.89 ▼41.52
Posts /wp-admin/edit.php3.17 ▼0.1929.78 ▼22.15
Add New Post /wp-admin/post-new.php3.17 ▼2.7231.14 ▼71.86
Media Library /wp-admin/upload.php3.17 ▼0.0625.80 ▼12.32
DxTag Rules /wp-admin/options-general.php?page=guaven_dxtag_settings3.1724.34

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 8 new options
New WordPress options
guaven_dxtag_installed
db_upgraded
can_compress_scripts
widget_theysaidso_widget
guaven_dxtag_activated
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for DxTag - SEO-Boosting WooCommerce Listing Generator
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲6114.23 ▼0.201.95 ▼0.1740.51 ▼2.52
Dashboard /wp-admin2,206 ▲295.62 ▼0.0491.30 ▼9.5441.33 ▼2.07
Posts /wp-admin/edit.php2,153 ▲502.00 ▲0.0239.79 ▲1.1336.76 ▲0.25
Add New Post /wp-admin/post-new.php1,533 ▲723.76 ▲0.72667.97 ▼19.2757.77 ▲4.13
Media Library /wp-admin/upload.php1,408 ▲54.21 ▼0.03108.45 ▼7.1946.16 ▼2.12
DxTag Rules /wp-admin/options-general.php?page=guaven_dxtag_settings8571.9922.4242.17

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/dxtag-auto-listings/admin/class-guaven_dxtag-admin.php+196
    Undefined index: guaven_dxtag_settingsnonce
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • guaven_dxtag_installed

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=guaven_dxtag_settings
    • > Notice in wp-content/plugins/dxtag-auto-listings/admin/class-guaven_dxtag-admin.php+196
    Undefined index: guaven_dxtag_settingsnonce
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=guaven_dxtag_settings
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method Guaven_Dxtag_Meta_Box::sync_term_data() should not be called statically
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=guaven_dxtag_settings
    • > Notice in wp-content/plugins/dxtag-auto-listings/includes/guaven_dxtag-admin-helper.php+32
    Undefined index: guaven_dxtag_nonce

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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/dxtag-auto-listings/admin/partials/guaven_dxtag-admin-display.php:53

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: dynamic listings, woocommerce seo, smart collections, seo boost, page generator

dxtag-auto-listings/guaven_dxtag.php 77% from 13 tests

This is the main PHP file of "DxTag - SEO-Boosting WooCommerce Listing Generator" version 1.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("dxtag-auto-listings.php" instead of "guaven_dxtag.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 188 characters long)
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin704 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP12198489693
CSS1148
JavaScript12273

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity9.43
▷ Minimum class complexity1.00
▷ Maximum class complexity37.00
Average method complexity2.51
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes114.29%
▷ Concrete classes685.71%
▷ Final classes00.00%
Methods40
▷ Static methods1025.00%
▷ Public methods3690.00%
▷ Protected methods00.00%
▷ Private methods410.00%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin