10% biltorvet-dealer-tools

Code Review | Biltorvet Dealer Tools

WordPress plugin Biltorvet Dealer Tools scored 10% from 54 tests.

About plugin

  • Plugin page: biltorvet-dealer-...
  • Plugin version: 1.0.22
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.7-5.1.1
  • WordPress version: 5.8.1
  • First release: Sep 21, 2018
  • Latest release: Aug 30, 2019
  • Number of updates: 63
  • Update frequency: every 5.5 days
  • Top authors: biltorvetas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 2,819 total downloads


Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/biltorvet-dealer-tools/classes/Biltorvet.php+33
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.41MB] [CPU: ▼140.65ms] Passed 4 tests

Analyzing server-side resources used by Biltorvet Dealer Tools
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.13 ▲0.4124.54 ▲3.51
Dashboard /wp-admin3.51 ▲0.4649.40 ▲2.25
Posts /wp-admin/edit.php3.57 ▲0.4643.26 ▲0.72
Add New Post /wp-admin/post-new.php5.81 ▲0.3895.38 ▼569.08
Media Library /wp-admin/upload.php3.39 ▲0.3935.59 ▲9.78
Biltorvet /wp-admin/options-general.php?page=bdt-settings3.3734.40

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Biltorvet Dealer Tools
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲11316.15 ▲0.6510.33 ▲1.5247.00 ▲1.46
Dashboard /wp-admin3,000 ▲635.98 ▼0.01145.07 ▼11.26107.27 ▲2.20
Posts /wp-admin/edit.php2,744 ▲52.71 ▲0.0168.20 ▼4.3287.87 ▲2.98
Add New Post /wp-admin/post-new.php1,686 ▲1418.71 ▼0.22411.28 ▼6.12111.48 ▲0.36
Media Library /wp-admin/upload.php1,812 ▲55.01 ▼0.05157.63 ▼2.96118.51 ▼8.31
Biltorvet /wp-admin/options-general.php?page=bdt-settings1,1432.0859.8178.68

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-includes/functions.php+6461
    fopen(wp-content/plugins/biltorvet-dealer-tools/autoit-dealer-tools.php): failed to open stream: No such file or directory
  • This plugin does not fully uninstall, leaving 1 option in the database
    • bdt_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/biltorvet-dealer-tools/autoit-dealer-tools.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 96% from 29 tests

readme.txt Passed 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
5 plugin tags: biltorvet web, cars, biltorvet, autodesktop, biler

biltorvet-dealer-tools/autoit-dealer-tools.php 92% from 13 tests

This is the main PHP file of "Biltorvet Dealer Tools" version 1.0.22, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("biltorvet-dealer-tools.php" instead of "autoit-dealer-tools.php")

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
No dangerous file extensions were detected4,819 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PO File11143251

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity47.83
▷ Minimum class complexity1.00
▷ Maximum class complexity194.00
Average method complexity4.58
▷ Minimum method complexity1.00
▷ Maximum method complexity91.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
▷ Static methods2214.01%
▷ Public methods10969.43%
▷ Protected methods4428.03%
▷ Private methods42.55%
▷ Named functions00.00%
▷ Anonymous functions1100.00%
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.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