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
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/car-loan-calculator/index.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; MyNewWidget has a deprecated constructor
Server metrics [RAM: ▼1.85MB] [CPU: ▼188.11ms] Passed 4 tests
Analyzing server-side resources used by Car Loan Calculator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.78 ▼0.94 | 9.35 ▼13.06 |
Dashboard /wp-admin | 1.80 ▼1.26 | 11.05 ▼36.61 |
Posts /wp-admin/edit.php | 1.80 ▼1.31 | 5.15 ▼38.56 |
Add New Post /wp-admin/post-new.php | 1.80 ▼3.64 | 6.02 ▼648.29 |
Media Library /wp-admin/upload.php | 1.80 ▼1.20 | 6.75 ▼28.98 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_mynewwidget |
Browser metrics Passed 4 tests
Checking browser requirements for Car Loan Calculator
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,702 ▲106 | 15.75 ▲0.21 | 12.62 ▲4.47 | 46.05 ▼2.75 |
Dashboard /wp-admin | 2,973 ▲42 | 5.99 ▲0.04 | 148.75 ▲1.72 | 106.61 ▲1.75 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.71 ▼0.00 | 69.97 ▲1.04 | 96.24 ▲0.30 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 17.26 ▼1.53 | 384.50 ▼15.78 | 107.21 ▼1.72 |
Media Library /wp-admin/upload.php | 1,804 ▲56 | 5.01 ▲0.04 | 212.29 ▲61.98 | 161.39 ▲49.78 |
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
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/car-loan-calculator/index.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; MyNewWidget has a deprecated constructor
- This plugin did not uninstall successfully, leaving 1 option in the database
- widget_mynewwidget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/car-loan-calculator/index.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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
These attributes need to be fixed:
- Donate link: Invalid URI found ("")
- Screenshots: Screenshot #1 (http://zazulu.com/screenshot.jpg) image missing
car-loan-calculator/index.php 85% from 13 tests
Analyzing the main PHP file in "Car Loan Calculator" version 1.0.2
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 224 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("car-loan-calculator.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin448 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 4 | 0 | 293 |
PHP | 1 | 15 | 9 | 79 |
CSS | 1 | 19 | 0 | 76 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin