Benchmarks
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.13 ▲0.41 | 24.54 ▲3.51 |
Dashboard /wp-admin | 3.51 ▲0.46 | 49.40 ▲2.25 |
Posts /wp-admin/edit.php | 3.57 ▲0.46 | 43.26 ▲0.72 |
Add New Post /wp-admin/post-new.php | 5.81 ▲0.38 | 95.38 ▼569.08 |
Media Library /wp-admin/upload.php | 3.39 ▲0.39 | 35.59 ▲9.78 |
Biltorvet /wp-admin/options-general.php?page=bdt-settings | 3.37 | 34.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 |
---|
bdt_options |
Browser metrics Passed 4 tests
Checking browser requirements for Biltorvet Dealer Tools
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲113 | 16.15 ▲0.65 | 10.33 ▲1.52 | 47.00 ▲1.46 |
Dashboard /wp-admin | 3,000 ▲63 | 5.98 ▼0.01 | 145.07 ▼11.26 | 107.27 ▲2.20 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.71 ▲0.01 | 68.20 ▼4.32 | 87.87 ▲2.98 |
Add New Post /wp-admin/post-new.php | 1,686 ▲14 | 18.71 ▼0.22 | 411.28 ▼6.12 | 111.48 ▲0.36 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.01 ▼0.05 | 157.63 ▼2.96 | 118.51 ▼8.31 |
Biltorvet /wp-admin/options-general.php?page=bdt-settings | 1,143 | 2.08 | 59.81 | 78.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
- > PHP Fatal error
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
Optimizations
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 670 | 410 | 3,555 |
JavaScript | 5 | 164 | 63 | 1,012 |
PO File | 1 | 114 | 3 | 251 |
CSS | 1 | 1 | 38 | 1 |
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 code | 0.54 |
Average class complexity | 47.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 194.00 |
Average method complexity | 4.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 91.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 157 | |
▷ Static methods | 22 | 14.01% |
▷ Public methods | 109 | 69.43% |
▷ Protected methods | 44 | 28.03% |
▷ Private methods | 4 | 2.55% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.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