90% tyresaddict-woo-tyre-custom-metadata

Code Review | TyresAddict - Tyre Custom Metadata for WooCommerce

WordPress plugin TyresAddict - Tyre Custom Metadata for WooCommerce scored 90% from 54 tests.

About plugin

  • Plugin page: tyresaddict-woo-t...
  • Plugin version: 2.2.10
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2.2
  • WordPress version: 6.3.1
  • First release: Apr 2, 2020
  • Latest release: Jun 23, 2023
  • Number of updates: 51
  • Update frequency: every 23.1 days
  • Top authors: tyresaddict (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active / 5,722 total downloads


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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▲2.05ms] Passed 4 tests

Analyzing server-side resources used by TyresAddict - Tyre Custom Metadata for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.65 ▲4.71
Dashboard /wp-admin3.31 ▲0.0151.86 ▲7.64
Posts /wp-admin/edit.php3.36 ▲0.0048.79 ▲1.95
Add New Post /wp-admin/post-new.php5.89 ▲0.0098.75 ▼1.29
Media Library /wp-admin/upload.php3.23 ▲0.0036.05 ▲2.82

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for TyresAddict - Tyre Custom Metadata for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.36 ▼0.011.92 ▼0.3243.65 ▼2.46
Dashboard /wp-admin2,209 ▲185.91 ▲1.0697.96 ▼0.2742.85 ▼0.05
Posts /wp-admin/edit.php2,092 ▲32.02 ▲0.0439.62 ▲1.8535.59 ▲0.55
Add New Post /wp-admin/post-new.php1,519 ▼2523.40 ▲5.36648.55 ▲33.7554.78 ▼4.23
Media Library /wp-admin/upload.php1,391 ▲34.23 ▲0.01103.46 ▼1.3240.70 ▼4.11

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 does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

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)
Everything seems fine on the user side


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: woocommerce search, tyres, custom tyre metadata, automotive, auto parts...

tyresaddict-woo-tyre-custom-metadata/tyresaddict-woo-tyre-custom-metadata.php 92% from 13 tests

The main PHP file in "TyresAddict - Tyre Custom Metadata for WooCommerce" ver. 2.2.10 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 290 characters long)

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
Everything looks great! No dangerous files found in this plugin2,281 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PO File45432,0461,134

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity10.64
▷ Minimum class complexity1.00
▷ Maximum class complexity42.00
Average method complexity2.71
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
▷ Static methods3048.39%
▷ Public methods5893.55%
▷ Protected methods00.00%
▷ Private methods46.45%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants16100.00%
▷ Public constants16100.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 were not PNG files found in your plugin