Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/pl-car-dealer/PL-car-dealer.php+91
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.64MB] [CPU: ▼49.36ms] Passed 4 tests
This is a short check of server-side resources used by PL Car Dealer
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.35 ▼1.11 | 11.16 ▼29.34 |
Dashboard /wp-admin | 2.37 ▼0.93 | 7.75 ▼43.95 |
Posts /wp-admin/edit.php | 2.37 ▼0.99 | 8.20 ▼45.50 |
Add New Post /wp-admin/post-new.php | 2.37 ▼3.52 | 8.50 ▼78.66 |
Media Library /wp-admin/upload.php | 2.37 ▼0.86 | 8.04 ▼27.55 |
All the vehicles /wp-admin/edit.php?post_type=vehicle | 2.37 | 10.03 |
Makes /wp-admin/edit-tags.php?taxonomy=cde_category_makes&post_type=vehicle | 2.37 | 8.73 |
Add /wp-admin/post-new.php?post_type=vehicle | 2.37 | 9.75 |
Server storage [IO: ▲0.95MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 94 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_cde_widget |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
widget_cde_makes_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
PL Car Dealer: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,884 ▲123 | 13.36 ▼1.02 | 1.59 ▼0.15 | 39.88 ▼16.33 |
Dashboard /wp-admin | 2,285 ▲82 | 4.98 ▲0.08 | 109.48 ▼0.63 | 41.67 ▼0.58 |
Posts /wp-admin/edit.php | 2,167 ▲67 | 2.08 ▲0.07 | 56.13 ▲15.80 | 44.75 ▲8.78 |
Add New Post /wp-admin/post-new.php | 1,583 ▲57 | 23.38 ▲5.82 | 654.69 ▲19.04 | 58.99 ▲6.50 |
Media Library /wp-admin/upload.php | 1,458 ▲58 | 4.30 ▲0.13 | 102.70 ▲1.39 | 43.20 ▲0.84 |
All the vehicles /wp-admin/edit.php?post_type=vehicle | 1,134 | 2.03 | 36.27 | 35.80 |
Makes /wp-admin/edit-tags.php?taxonomy=cde_category_makes&post_type=vehicle | 1,307 | 2.34 | 28.39 | 30.49 |
Add /wp-admin/post-new.php?post_type=vehicle | 2,526 | 7.88 | 178.97 | 72.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/pl-car-dealer/PL-car-dealer.php+91
Trying to access array offset on value of type bool
- Zombie WordPress options were found after uninstall: 8 options
- can_compress_scripts
- theysaidso_admin_options
- widget_cde_widget
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_cde_makes_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 8 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=vehicle
- > Notice in wp-content/plugins/pl-car-dealer/PL-car-dealer.php+92
Trying to access array offset on value of type bool
SRP 50% from 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
Please fix the following
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/pl-car-dealer/CMB2/bootstrap.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pl-car-dealer/CMB2/init.php:91
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pl-car-dealer/CMB2/init.php:91
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/pl-car-dealer/templates/archive-vehicle.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/pl-car-dealer/templates/advanced-vehicle-results.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/pl-car-dealer/templates/single-vehicle.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/pl-car-dealer/classes/cde_admin.php:39
- > PHP Fatal error
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 96% 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
5 plugin tags: car dealer, car seller, cars, autostock, selling cars
pl-car-dealer/PL-car-dealer.php 92% from 13 tests
The entry point to "PL Car Dealer" version 1.3.2 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("pl-car-dealer.php" instead of "PL-car-dealer.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected11,281 lines of code in 52 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 9 | 1,063 | 1,081 | 5,087 |
PHP | 19 | 1,158 | 2,157 | 3,674 |
Sass | 11 | 168 | 23 | 1,116 |
JavaScript | 10 | 195 | 152 | 757 |
PO File | 2 | 245 | 302 | 539 |
Markdown | 1 | 39 | 0 | 108 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 36.56 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 121.00 |
Average method complexity | 3.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 212 | |
▷ Static methods | 21 | 9.91% |
▷ Public methods | 200 | 94.34% |
▷ Protected methods | 8 | 3.77% |
▷ Private methods | 4 | 1.89% |
Functions | 36 | |
▷ Named functions | 36 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 3 | 60.00% |
▷ Class constants | 2 | 40.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
26 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/controls.png | 2.83KB | 1.28KB | ▼ 54.82% |
images/loading_background.png | 0.15KB | 0.15KB | ▼ 0.64% |
images/close_SC.png | 3.40KB | 2.03KB | ▼ 40.38% |
CMB2/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
CMB2/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |