Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.25ms] Passed 4 tests
Server-side resources used by Car Loan Application and Calculator Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.04 | 39.71 ▼3.05 |
Dashboard /wp-admin | 3.33 ▲0.03 | 46.88 ▼1.41 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 47.94 ▲5.04 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 90.23 ▼0.34 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 36.20 ▼0.18 |
Server storage [IO: ▲0.63MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 48 new files
Database: 2 new tables, 11 new options
New tables |
---|
wp_clm_co_buyers |
wp_clm_applicants |
New WordPress options |
---|
clm_clean_db |
clm_provinces |
clm_vehicles |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
clm_emails |
theysaidso_admin_options |
widget_theysaidso_widget |
clm_version |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Car Loan Application and Calculator Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,957 ▲222 | 13.69 ▼1.06 | 8.71 ▲6.60 | 41.65 ▼8.57 |
Dashboard /wp-admin | 2,280 ▲89 | 5.84 ▲0.92 | 99.63 ▼3.30 | 60.23 ▲18.72 |
Posts /wp-admin/edit.php | 2,103 ▲14 | 1.97 ▼0.06 | 38.74 ▲1.52 | 32.94 ▼0.82 |
Add New Post /wp-admin/post-new.php | 1,524 ▼23 | 23.06 ▲4.80 | 683.20 ▲99.35 | 52.69 ▼0.94 |
Media Library /wp-admin/upload.php | 1,399 ▲14 | 4.16 ▼0.05 | 93.42 ▼6.24 | 69.02 ▲18.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie tables were found after uninstall: 2 tables
- wp_clm_co_buyers
- wp_clm_applicants
- The uninstall procedure has failed, leaving 11 options in the database
- clm_vehicles
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- clm_clean_db
- clm_emails
- clm_provinces
- can_compress_scripts
- widget_theysaidso_widget
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/car-loan-application-and-calculator-module/libs/clm-captcha/captcha.php
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/car-loan-application-and-calculator-module/Car_loan_module.php:24
- > PHP Warning
Use of undefined constant DB_USER - assumed 'DB_USER' (this will throw an Error in a future version of PHP) in wp-content/plugins/car-loan-application-and-calculator-module/clm-config.php on line 17
- > PHP Notice
Trying to get property 'base_prefix' of non-object in wp-content/plugins/car-loan-application-and-calculator-module/clm-config.php on line 25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/car-loan-application-and-calculator-module/view/front_calc_form.php:176
- > PHP Warning
Use of undefined constant DB_PASSWORD - assumed 'DB_PASSWORD' (this will throw an Error in a future version of PHP) in wp-content/plugins/car-loan-application-and-calculator-module/clm-config.php on line 19
- > PHP Warning
Use of undefined constant DB_NAME - assumed 'DB_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/car-loan-application-and-calculator-module/clm-config.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/car-loan-application-and-calculator-module/controller/ajax.php:98
- > PHP Fatal error
Uncaught Error: Class 'SKY_WPDB' not found in wp-content/plugins/car-loan-application-and-calculator-module/clm-config.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/car-loan-application-and-calculator-module/view/front_application_form.php:1207
- > PHP Warning
Use of undefined constant DB_HOST - assumed 'DB_HOST' (this will throw an Error in a future version of PHP) in wp-content/plugins/car-loan-application-and-calculator-module/clm-config.php on line 13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add an image for screenshot #1 (Car Loan Manager Admin Page)
car-loan-application-and-calculator-module/Car_loan_module.php 92% from 13 tests
The entry point to "Car Loan Application and Calculator Plugin" version 1.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("car-loan-application-and-calculator-module.php" instead of "Car_loan_module.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin5,897 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 2,922 | 597 | 4,061 |
CSS | 4 | 68 | 57 | 1,308 |
JavaScript | 4 | 596 | 66 | 528 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 38 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 31 | |
▷ Named functions | 31 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
18 PNG files occupy 0.11MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/img/settings-icon.png | 3.64KB | 2.45KB | ▼ 32.74% |
libs/jquery-ui/ui-lightness/images/ui-icons_222222_256x240.png | 6.76KB | 4.17KB | ▼ 38.24% |
libs/jquery-ui/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png | 0.41KB | 0.15KB | ▼ 62.44% |
libs/jquery-ui/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png | 0.20KB | 0.09KB | ▼ 57.49% |
libs/jquery-ui/ui-lightness/images/ui-bg_flat_10_000000_40x100.png | 0.20KB | 0.08KB | ▼ 57.56% |