Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.34MB] [CPU: ▼4.34ms] Passed 4 tests
A check of server-side resources used by Autostock
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 46.43 ▲5.03 |
Dashboard /wp-admin | 3.67 ▲0.37 | 52.07 ▲2.48 |
Posts /wp-admin/edit.php | 3.78 ▲0.43 | 48.37 ▼0.80 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.39 | 91.91 ▼20.55 |
Media Library /wp-admin/upload.php | 3.59 ▲0.37 | 38.38 ▲1.50 |
Add Car /wp-admin/post-new.php?post_type=cars | 3.63 | 47.81 |
Car Types /wp-admin/edit-tags.php?taxonomy=car_types&post_type=cars | 3.59 | 39.11 |
Car Features Settings /wp-admin/admin.php?page=car_features_setting | 3.56 | 40.78 |
Autostock /wp-admin/admin.php?page=autostock_admin_settings | 3.56 | 36.47 |
All Cars /wp-admin/edit.php?post_type=cars | 3.64 | 36.66 |
Car Features /wp-admin/edit-tags.php?taxonomy=car_features&post_type=cars | 3.59 | 39.27 |
Makes and Models /wp-admin/edit-tags.php?taxonomy=car_make_model&post_type=cars | 3.59 | 37.99 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Autostock
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,888 ▲127 | 13.19 ▼1.19 | 5.95 ▲4.25 | 40.95 ▼2.63 |
Dashboard /wp-admin | 2,294 ▲91 | 5.86 ▲0.00 | 101.65 ▲0.68 | 41.35 ▲4.77 |
Posts /wp-admin/edit.php | 2,170 ▲73 | 2.03 ▼0.00 | 36.75 ▼2.77 | 34.20 ▼1.30 |
Add New Post /wp-admin/post-new.php | 1,584 ▲44 | 17.75 ▼0.65 | 677.22 ▲62.44 | 50.17 ▼13.50 |
Media Library /wp-admin/upload.php | 1,473 ▲70 | 4.25 ▲0.01 | 98.50 ▼4.74 | 42.99 ▲1.09 |
Add Car /wp-admin/post-new.php?post_type=cars | 2,813 | 8.16 | 182.62 | 73.50 |
Car Types /wp-admin/edit-tags.php?taxonomy=car_types&post_type=cars | 1,319 | 2.16 | 43.61 | 48.94 |
Car Features Settings /wp-admin/admin.php?page=car_features_setting | 862 | 2.08 | 24.23 | 29.05 |
Autostock /wp-admin/admin.php?page=autostock_admin_settings | 902 | 1.72 | 26.76 | 31.77 |
All Cars /wp-admin/edit.php?post_type=cars | 1,159 | 1.98 | 29.57 | 27.88 |
Car Features /wp-admin/edit-tags.php?taxonomy=car_features&post_type=cars | 1,344 | 2.16 | 28.18 | 30.93 |
Makes and Models /wp-admin/edit-tags.php?taxonomy=car_make_model&post_type=cars | 1,344 | 2.16 | 29.33 | 30.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=cars
- > Notice in wp-content/plugins/autostock/includes/Car_Post_Type.php+319
Trying to access array offset on value of type bool
- 21 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=cars
- > Warning in wp-content/plugins/autostock/includes/Car_Post_Type.php+329
Illegal string offset 'vehicle_year'
- 21 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=cars
- > Notice in wp-content/plugins/autostock/includes/Car_Post_Type.php+329
Uninitialized string offset: 0
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function Autostock\\AdminSettings\\get_option() in wp-content/plugins/autostock/includes/admin_settings.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function Autostock\\register_activation_hook() in wp-content/plugins/autostock/autostock.php:46
- > PHP Fatal error
Uncaught Error: Call to undefined function Autostock\\CarPostType\\_x() in wp-content/plugins/autostock/includes/Car_Post_Type.php:42
- > 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 on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: car sales, car dealer, automotive, auto dealer, car lots
autostock/autostock.php 85% from 13 tests
The entry point to "Autostock" version 1.0.4 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Domain Path: The domain path must begin with a forward slash character ("/locale")
- Domain Path: You should use only dashes and lowercase characters for the domain path ("locale")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected790 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 164 | 172 | 762 |
JavaScript | 1 | 3 | 0 | 18 |
CSS | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 44.50 |
▷ Minimum class complexity | 32.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 4.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 26 | 92.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 7.14% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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