Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼9.85ms] Passed 4 tests
Server-side resources used by AsCode Woo Calculator - Build Load Calculator for Eletronics Woocommerce Shop & Help Customer to Suggest Product
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 35.39 ▼5.75 |
Dashboard /wp-admin | 3.53 ▲0.18 | 44.37 ▼18.10 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 48.82 ▼0.51 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 82.32 ▼15.02 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 34.95 ▲1.57 |
Server storage [IO: ▲3.18MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
ascode_installed_time |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
AsCode Woo Calculator - Build Load Calculator for Eletronics Woocommerce Shop & Help Customer to Suggest Product: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,921 ▲134 | 14.09 ▼0.31 | 76.06 ▲74.07 | 27.12 ▼17.62 |
Dashboard /wp-admin | 2,210 ▲30 | 5.61 ▼0.03 | 91.85 ▼8.32 | 41.70 ▼4.14 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 2.00 ▼0.01 | 40.22 ▲2.65 | 38.89 ▲3.52 |
Add New Post /wp-admin/post-new.php | 1,541 ▲12 | 23.21 ▲0.07 | 689.61 ▲7.34 | 54.39 ▲1.00 |
Media Library /wp-admin/upload.php | 1,421 ▲27 | 4.21 ▼0.04 | 99.93 ▲5.11 | 39.94 ▼3.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 WordPress options detected upon uninstall: 7 options
- ascode_installed_time
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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/ascode-woo-calculator/views/admin-view.php
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 Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: product suggestion, load calculation, energy supply, eletronics load, energy...
ascode-woo-calculator/ascode-woo-calculator.php 85% from 13 tests
The main file in "AsCode Woo Calculator - Build Load Calculator for Eletronics Woocommerce Shop & Help Customer to Suggest Product" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Requires at least: Required version does not match the one declared in readme.txt ("4.4" instead of "5.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin63,737 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 13,694 | 14,727 | 61,996 |
PHP | 20 | 240 | 544 | 960 |
CSS | 1 | 0 | 82 | 758 |
JSON | 2 | 0 | 0 | 23 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 8.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 1 | 7.14% |
Methods | 71 | |
▷ Static methods | 19 | 26.76% |
▷ Public methods | 67 | 94.37% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 5.63% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 6 | |
▷ Global constants | 5 | 83.33% |
▷ Class constants | 1 | 16.67% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin