Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.99MB] [CPU: ▲3.30ms] 75% from 4 tests
Server-side resources used by Solar Wizard Lite
Please fix the following
- CPU: The total CPU usage must kept under 500.00ms (currently 518.71ms on /wp-admin/admin.php?page=solar_options)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.28 ▲0.81 | 39.81 ▲2.19 |
Dashboard /wp-admin | 4.42 ▲1.11 | 51.43 ▲3.69 |
Posts /wp-admin/edit.php | 4.47 ▲1.11 | 51.99 ▲4.91 |
Add New Post /wp-admin/post-new.php | 6.92 ▲1.02 | 92.25 ▲4.07 |
Media Library /wp-admin/upload.php | 4.26 ▲1.02 | 38.64 ▲3.26 |
Settings /wp-admin/admin.php?page=solar_options | 4.81 | 518.71 |
Quotes /wp-admin/edit.php?post_type=quote | 4.39 | 41.44 |
Server storage [IO: ▲1.24MB] [DB: ▲0.05MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 57 new files
Database: no new tables, 42 new options
New WordPress options |
---|
sw_db_version |
sw_disable_battery_option |
sw_price_per_watt_panel_high_lease |
sw_panel_watt |
sw_email_at_wizard_completion |
sw_loan_rate |
sw_system_size_fixed_pricing_matrix |
sw_wizard_title |
sw_show_purchase_lease |
sw_incentives_repeater_value |
... |
Browser metrics Passed 4 tests
Solar Wizard Lite: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,134 ▲348 | 15.26 ▲0.66 | 10.36 ▲8.53 | 40.74 ▼6.91 |
Dashboard /wp-admin | 2,399 ▲219 | 6.35 ▲0.69 | 111.79 ▲23.50 | 38.80 ▼6.07 |
Posts /wp-admin/edit.php | 2,324 ▲224 | 3.66 ▲1.68 | 48.99 ▲14.91 | 33.71 ▼3.07 |
Add New Post /wp-admin/post-new.php | 1,577 ▲51 | 23.65 ▲0.10 | 655.18 ▼47.46 | 39.39 ▼15.84 |
Media Library /wp-admin/upload.php | 1,467 ▲70 | 4.34 ▲0.14 | 81.16 ▼14.92 | 42.34 ▼3.10 |
Settings /wp-admin/admin.php?page=solar_options | 3,821 | 5.06 | 70.65 | 91.02 |
Quotes /wp-admin/edit.php?post_type=quote | 1,330 | 3.90 | 45.24 | 27.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.05MB] 75% 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
- Zombie WordPress options were found after uninstall: 42 options
- sw_email_enable_user_notification
- sw_utility_increase_rate
- sw_environmental_derate_factor
- sw_credit_score
- db_upgraded
- sw_lease_credit_score
- theysaidso_admin_options
- sw_currency_symbol
- sw_db_version
- sw_secondary_color
- ...
Smoke tests 75% 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 50% 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
Please fix the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/solar-wizard-lite/admin/admin_settings.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/solar-wizard-lite/admin/admin_settings.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/solar-wizard-lite/includes.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
These attributes need to be fixed:
- Screenshots: Please describe screenshot #10 in solar-wizard-lite/assets to your readme.txt
solar-wizard-lite/solar-wizard-lite.php 92% from 13 tests
The principal PHP file in "Solar Wizard Lite" v. 1.2.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis 97% from 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
Good job! No executable or dangerous file extensions detected12,710 lines of code in 50 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 186 | 85 | 5,005 |
CSS | 6 | 78 | 51 | 3,880 |
JavaScript | 8 | 215 | 473 | 3,188 |
SVG | 32 | 0 | 26 | 637 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 106)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 114.33 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 187.00 |
Average method complexity | 6.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 106.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 64 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 64 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.28MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/arrow.png | 0.42KB | 0.29KB | ▼ 30.30% |
img/flags@2x.png | 170.28KB | 68.04KB | ▼ 60.04% |
css/images/ui-icons_444444_256x240.png | 6.84KB | 4.18KB | ▼ 38.90% |
img/flags.png | 69.20KB | 23.42KB | ▼ 66.16% |
images/trusting_solar_image.png | 43.59KB | 17.79KB | ▼ 59.19% |