Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-content/plugins/stock-car-listing-from-autocerfa/src/abstract/AbstractModule.php+138
Undefined offset: 0
Server metrics [RAM: ▲0.45MB] [CPU: ▲3.95ms] Passed 4 tests
Analyzing server-side resources used by Autocerfa Connector
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.47 | 47.81 ▲6.32 |
Dashboard /wp-admin | 3.77 ▲0.47 | 55.43 ▲6.64 |
Posts /wp-admin/edit.php | 3.81 ▲0.45 | 56.63 ▲12.23 |
Add New Post /wp-admin/post-new.php | 6.37 ▲0.48 | 91.76 ▼9.27 |
Media Library /wp-admin/upload.php | 3.64 ▲0.41 | 46.23 ▲12.11 |
Upgrade to pro /wp-admin/admin.php?page=upgrade-to-pro | 3.62 | 45.11 |
Support /wp-admin/admin.php?page=support | 3.62 | 40.05 |
License Key /wp-admin/admin.php?page=license-key | 3.62 | 40.23 |
Autocerfa /wp-admin/admin.php?page=autocerfa | 3.69 | 38.83 |
Settings /wp-admin/admin.php?page=autocerfa-settings | 3.67 | 39.13 |
Server storage [IO: ▲6.79MB] [DB: ▲0.08MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 216 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_autocerfa_badges |
New WordPress options |
---|
autocerfa_requires_flush |
widget_theysaidso_widget |
version |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
autocerfa_plugin_version |
Browser metrics Passed 4 tests
An overview of browser requirements for Autocerfa Connector
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,049 ▲287 | 14.95 ▲0.60 | 14.63 ▲12.92 | 39.55 ▼4.94 |
Dashboard /wp-admin | 2,274 ▲97 | 5.14 ▼0.47 | 89.05 ▼10.75 | 39.04 ▼4.28 |
Posts /wp-admin/edit.php | 2,189 ▲89 | 2.36 ▲0.36 | 45.90 ▲9.79 | 36.39 ▲1.43 |
Add New Post /wp-admin/post-new.php | 1,596 ▲70 | 21.96 ▼1.30 | 713.52 ▲42.29 | 37.75 ▼23.79 |
Media Library /wp-admin/upload.php | 1,492 ▲89 | 4.85 ▲0.60 | 104.18 ▲6.80 | 46.91 ▲3.88 |
Upgrade to pro /wp-admin/admin.php?page=upgrade-to-pro | 947 | 2.55 | 36.36 | 36.91 |
Support /wp-admin/admin.php?page=support | 929 | 2.65 | 31.24 | 29.27 |
License Key /wp-admin/admin.php?page=license-key | 921 | 2.48 | 35.68 | 24.13 |
Autocerfa /wp-admin/admin.php?page=autocerfa | 1,295 | 2.64 | 36.19 | 52.20 |
Settings /wp-admin/admin.php?page=autocerfa-settings | 1,541 | 2.34 | 39.51 | 73.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie tables detected upon uninstall: 1 table
- wp_autocerfa_badges
- Zombie WordPress options detected upon uninstall: 9 options
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- autocerfa_plugin_version
- widget_recent-posts
- widget_recent-comments
- autocerfa_requires_flush
- version
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=autocerfa-settings
- > Notice in wp-content/plugins/stock-car-listing-from-autocerfa/src/AutocerfaStockPost.php+136
Trying to access array offset on value of type null
- > GET request to /wp-admin/admin.php?page=autocerfa-settings
- > Notice in wp-content/plugins/stock-car-listing-from-autocerfa/view/admin/shortcodes.php+18
Undefined index: tab
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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/stock-car-listing-from-autocerfa/view/front/short-listed-cars/_without_slider.php
- 12× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/stock-car-listing-from-autocerfa/view/front/autocerfa-search-box.php:10
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/stock-car-listing-from-autocerfa/vendor/scssphp/scssphp/src/Formatter/Crunched.php:22
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/stock-car-listing-from-autocerfa/vendor/scssphp/scssphp/src/Formatter/Expanded.php:22
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/stock-car-listing-from-autocerfa/view/front/short-listed-cars/_without_slider.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/stock-car-listing-from-autocerfa/vendor/scssphp/scssphp/src/Formatter/Compressed.php:22
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/stock-car-listing-from-autocerfa/vendor/scssphp/scssphp/src/Formatter/Compact.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/stock-car-listing-from-autocerfa/view/front/cars/sidebar.php:20
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/stock-car-listing-from-autocerfa/vendor/scssphp/scssphp/src/Formatter/Nested.php:23
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\ode' not found in wp-content/plugins/stock-car-listing-from-autocerfa/vendor/scssphp/scssphp/src/Node/Number.php:29
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/stock-car-listing-from-autocerfa/vendor/scssphp/scssphp/src/Formatter/Debug.php:22
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=autocerfa
- > Rendering (warning) in unknown
/wp-admin/admin.php?page=autocerfa 345 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
- > GET request to /wp-admin/admin.php?page=autocerfa
- > Rendering (warning) in unknown
/wp-admin/admin.php?page=autocerfa 354 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
- > GET request to /wp-admin/admin.php?page=autocerfa-settings
- > Rendering (warning) in unknown
/wp-admin/admin.php?page=autocerfa-settings 361 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
- > GET request to /wp-admin/admin.php?page=autocerfa-settings
- > Rendering (warning) in unknown
/wp-admin/admin.php?page=autocerfa-settings 370 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add descriptions for these screenshots #6, #7 in stock-car-listing-from-autocerfa/assets to your readme.txt
stock-car-listing-from-autocerfa/app.php 85% from 13 tests
Analyzing the main PHP file in "Autocerfa Connector" version 2.3.14
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("stock-car-listing-from-autocerfa.php" instead of "app.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis 0% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Please fix the following items
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/stock-car-listing-from-autocerfa/vendor/bin/pscss.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 6 | 0 | 0 | 22,765 |
CSS | 21 | 459 | 127 | 15,279 |
PHP | 93 | 3,553 | 4,130 | 14,772 |
JavaScript | 19 | 605 | 457 | 6,874 |
Sass | 15 | 151 | 22 | 2,316 |
SVG | 3 | 0 | 3 | 770 |
PO File | 1 | 161 | 204 | 406 |
Markdown | 2 | 21 | 0 | 45 |
Bourne Shell | 1 | 3 | 1 | 10 |
DOS Batch | 1 | 0 | 0 | 4 |
PHP code 0% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
These items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 1,209)
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 195)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 46.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,209.00 |
Average method complexity | 4.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 195.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 52 | |
▷ Abstract classes | 5 | 9.62% |
▷ Concrete classes | 47 | 90.38% |
▷ Final classes | 0 | 0.00% |
Methods | 606 | |
▷ Static methods | 57 | 9.41% |
▷ Public methods | 273 | 45.05% |
▷ Protected methods | 319 | 52.64% |
▷ Private methods | 14 | 2.31% |
Functions | 23 | |
▷ Named functions | 7 | 30.43% |
▷ Anonymous functions | 16 | 69.57% |
Constants | 82 | |
▷ Global constants | 8 | 9.76% |
▷ Class constants | 74 | 90.24% |
▷ Public constants | 74 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 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 |
assets/add-on/jquery-ui/images/ui-icons_444444_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
assets/add-on/jquery-ui/images/ui-icons_555555_256x240.png | 6.82KB | 4.17KB | ▼ 38.82% |
assets/add-on/jquery-ui/images/ui-icons_cc0000_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
assets/add-on/jquery-ui/images/ui-icons_777777_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |
assets/add-on/choosen/chosen-sprite.png | 0.63KB | 0.88KB | 0.00% |