84% tyresaddict-wheel-product-filter

Code Review | TyresAddict - Wheel Product Filter

WordPress plugin TyresAddict - Wheel Product Filter scored84%from 54 tests.

About plugin

  • Plugin page: tyresaddict-wheel...
  • Plugin version: 1.4.14
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4.1
  • WordPress version: 6.3.1
  • First release: Jun 17, 2020
  • Latest release: Nov 14, 2023
  • Number of updates: 22
  • Update frequency: every 56.6 days
  • Top authors: tyresaddict (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /2,053 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.10MB] [CPU: ▼2.13ms] Passed 4 tests

A check of server-side resources used by TyresAddict - Wheel Product Filter
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1140.65 ▲2.17
Dashboard /wp-admin3.42 ▲0.0749.66 ▼7.50
Posts /wp-admin/edit.php3.53 ▲0.1752.80 ▲6.97
Add New Post /wp-admin/post-new.php6.00 ▲0.1190.58 ▼8.67
Media Library /wp-admin/upload.php3.34 ▲0.1139.27 ▲5.47

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_tyresaddict_wheel_filter_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
tyresaddict-wheel-product-filter-deferred-admin-notices

Browser metrics Passed 4 tests

An overview of browser requirements for TyresAddict - Wheel Product Filter
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5514.67 ▼0.031.68 ▼0.0544.50 ▲4.92
Dashboard /wp-admin2,204 ▲265.63 ▼0.0991.32 ▼12.2741.15 ▲2.92
Posts /wp-admin/edit.php2,103 ▲31.97 ▼0.0039.86 ▲3.8237.17 ▼0.03
Add New Post /wp-admin/post-new.php1,532 ▲523.28 ▲0.20634.61 ▼17.6650.16 ▼6.36
Media Library /wp-admin/upload.php1,424 ▲274.21 ▲0.02101.52 ▲3.8842.31 ▲2.07

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
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_tyresaddict_wheel_filter_widget
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • tyresaddict-wheel-product-filter-deferred-admin-notices
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/tyresaddict-wheel-product-filter/includes/FilterWidget.php:17
    • > PHP Notice
      Undefined variable: form_url in wp-content/plugins/tyresaddict-wheel-product-filter/templates/filter-white.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/tyresaddict-wheel-product-filter/templates/filter-white.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
You can take inspiration from this readme.txt

tyresaddict-wheel-product-filter/tyresaddict-wheel-product-filter.php 92% from 13 tests

The primary PHP file in "TyresAddict - Wheel Product Filter" version 1.4.14 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 178 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,187 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP14284263701
PO File3156264348
CSS111078
JavaScript116060

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity8.00
▷ Minimum class complexity1.00
▷ Maximum class complexity18.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods54
▷ Static methods2953.70%
▷ Public methods4990.74%
▷ Protected methods11.85%
▷ Private methods47.41%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants18
▷ Global constants00.00%
▷ Class constants18100.00%
▷ Public constants18100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin