67% auto-bulb-finder-for-wp-wc

Code Review | Auto Bulb Finder for WordPress

WordPress plugin Auto Bulb Finder for WordPress scored67%from 54 tests.

About plugin

  • Plugin page: auto-bulb-finder-...
  • Plugin version: 2.7.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.2.1
  • WordPress version: 6.3.1
  • First release: Feb 4, 2023
  • Latest release: Jul 19, 2023
  • Number of updates: 23
  • Update frequency: every 7.2 days
  • Top authors: mtoolstec (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /525 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼7.99ms] Passed 4 tests

A check of server-side resources used by Auto Bulb Finder for WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.59 ▼0.878.28 ▼30.89
Dashboard /wp-admin3.75 ▲0.4149.02 ▼9.35
Posts /wp-admin/edit.php3.80 ▲0.4547.82 ▲4.51
Add New Post /wp-admin/post-new.php6.27 ▲0.38118.23 ▲16.21
Media Library /wp-admin/upload.php3.61 ▲0.3835.42 ▲3.77
Vehicles /wp-admin/admin.php?page=auto-bulb-finder-vehicle3.6333.87
Adaptions /wp-admin/admin.php?page=auto-bulb-finder-adaption3.6336.23
Statistics /wp-admin/admin.php?page=auto-bulb-finder-statistic3.5930.68
Auto Bulb /wp-admin/admin.php?page=auto-bulb-finder-for-wp-wc3.6444.04

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 44 new files
Database: 3 new tables, 9 new options
New tables
wp_abfinder_adaptions
wp_abfinder_vehicles
wp_abfinder_vehicle_query_history
New WordPress options
can_compress_scripts
app_promotion_html
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
abfinder_db_version
enable_vehicle_post

Browser metrics Passed 4 tests

This is an overview of browser requirements for Auto Bulb Finder for WordPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,944 ▲19814.00 ▼0.315.37 ▲3.4935.66 ▼4.26
Dashboard /wp-admin2,243 ▲585.83 ▲0.90102.80 ▼3.3671.63 ▲27.04
Posts /wp-admin/edit.php2,129 ▲402.02 ▼0.0433.65 ▼5.1632.51 ▼3.28
Add New Post /wp-admin/post-new.php1,550 ▲3123.36 ▲0.11739.35 ▲100.3752.62 ▲5.33
Media Library /wp-admin/upload.php1,428 ▲434.13 ▼0.08105.41 ▲3.9046.75 ▲2.45
Vehicles /wp-admin/admin.php?page=auto-bulb-finder-vehicle9912.0724.9126.84
Adaptions /wp-admin/admin.php?page=auto-bulb-finder-adaption9742.0523.8425.39
Statistics /wp-admin/admin.php?page=auto-bulb-finder-statistic8942.0322.3725.18
Auto Bulb /wp-admin/admin.php?page=auto-bulb-finder-for-wp-wc1,6376.55122.07105.51

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie tables detected upon uninstall: 1 table
    • wp_abfinder_vehicle_query_history
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • abfinder_db_version
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/auto-bulb-finder-for-wp-wc/templates/front/abfinder-my-vehicles.php
    • > /wp-content/plugins/auto-bulb-finder-for-wp-wc/templates/front/class-abfinder-loader.php
    • > /wp-content/plugins/auto-bulb-finder-for-wp-wc/includes/index.php
  • 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'ABFinder\\Helper\\ABFinder_Database' not found in wp-content/plugins/auto-bulb-finder-for-wp-wc/templates/front/class-abfinder-dynamic.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/auto-bulb-finder-for-wp-wc/templates/admin/settings/class-abfinder-status.php:18
    • > PHP Warning
      Use of undefined constant ABFINDER_PLUGIN_FILE - assumed 'ABFINDER_PLUGIN_FILE' (this will throw an Error in a future version of PHP) in wp-content/plugins/auto-bulb-finder-for-wp-wc/templates/front/class-abfinder-dynamic.php on line 5
    • > PHP Warning
      include(): Failed opening 'ABFINDER_PLUGIN_FILEtemplates/front/class-abfinder-loader.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/auto-bulb-finder-for-wp-wc/templates/front/class-abfinder-dynamic.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/auto-bulb-finder-for-wp-wc/templates/admin/settings/class-abfinder-registration.php:2
    • > PHP Warning
      Use of undefined constant ABFINDER_PLUGIN_URL - assumed 'ABFINDER_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/auto-bulb-finder-for-wp-wc/templates/front/class-abfinder-loader.php on line 24
    • > PHP Notice
      Undefined variable: abfCodeStatus in wp-content/plugins/auto-bulb-finder-for-wp-wc/templates/admin/settings/class-abfinder-status.php on line 10
    • > PHP Notice
      Undefined variable: abfCodeStatus in wp-content/plugins/auto-bulb-finder-for-wp-wc/templates/admin/settings/class-abfinder-status.php on line 10
    • > PHP Fatal error
      Uncaught Error: Class 'ABFinder\\Helper\\ABFinder_Database' not found in wp-content/plugins/auto-bulb-finder-for-wp-wc/templates/admin/statistics/abfinder-statistics.php:7
    • > PHP Notice
      Undefined variable: content in wp-content/plugins/auto-bulb-finder-for-wp-wc/templates/front/class-abfinder-dynamic.php on line 8

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: automotive, year make model, auto bulb

auto-bulb-finder-for-wp-wc/auto-bulb-finder.php 69% from 13 tests

The main PHP script in "Auto Bulb Finder for WordPress" version 2.7.2 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 203 characters long)
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Domain Path: The domain path folder does not exist ("/languages")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("auto-bulb-finder-for-wp-wc.php" instead of "auto-bulb-finder.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin4,772 lines of code in 38 files:
LanguageFilesBlank linesComment linesLines of code
PHP285426094,072
JavaScript44220371
CSS37110326
SVG3003

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity28.82
▷ Minimum class complexity1.00
▷ Maximum class complexity121.00
Average method complexity3.66
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes19.09%
Methods115
▷ Static methods10.87%
▷ Public methods10288.70%
▷ Protected methods21.74%
▷ Private methods119.57%
Functions35
▷ Named functions3291.43%
▷ Anonymous functions38.57%
Constants2
▷ Global constants2100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/chosen-sprite@2x.png0.53KB0.88KB0.00%
assets/css/chosen-sprite.png0.53KB0.88KB0.00%