90% ymm-search

Code Review | Year Make Model Search for WooCommerce

WordPress plugin Year Make Model Search for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: ymm-search
  • Plugin version: 1.0.10
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Oct 20, 2017
  • Latest release: Aug 20, 2023
  • Number of updates: 62
  • Update frequency: every 34.4 days
  • Top authors: pektsekye (100%)

Code review

54 tests

User reviews

29 reviews

Install metrics

1,000+ active /17,821 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

Analyzing server-side resources used by Year Make Model Search for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.95 ▼2.13
Dashboard /wp-admin3.31 ▲0.0045.03 ▼1.24
Posts /wp-admin/edit.php3.36 ▲0.0043.03 ▼3.65
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.79 ▼15.99
Media Library /wp-admin/upload.php3.23 ▲0.0035.71 ▲4.08

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Year Make Model Search for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.22 ▼1.161.78 ▲0.0645.78 ▲1.82
Dashboard /wp-admin2,209 ▲184.85 ▼0.04104.72 ▲0.8238.24 ▼5.28
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0436.86 ▼2.6331.78 ▼4.82
Add New Post /wp-admin/post-new.php1,534 ▼823.21 ▲4.94646.42 ▲30.7165.26 ▲8.42
Media Library /wp-admin/upload.php1,391 ▲64.22 ▲0.0595.70 ▼7.4440.56 ▼7.07

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

ymm-search/ymm-search.php Passed 13 tests

"Year Make Model Search for WooCommerce" version 1.0.10's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
73 characters long description:
Customer can search for replacment parts by vehicle make, model and year.

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,630 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP20695392,007
JavaScript22261569
CSS422054

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity21.14
▷ Minimum class complexity1.00
▷ Maximum class complexity45.00
Average method complexity3.10
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes17.14%
Methods134
▷ Static methods64.48%
▷ Public methods12996.27%
▷ Protected methods00.00%
▷ Private methods53.73%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.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
No PNG files were detected