Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼9.72ms] Passed 4 tests
A check of server-side resources used by Vchasno Kasa
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.90 ▼6.02 |
Dashboard /wp-admin | 3.31 ▼0.04 | 43.69 ▼16.30 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.81 ▲3.14 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.06 ▼15.24 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.29 ▼1.32 |
Server storage [IO: ▲0.12MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Vchasno Kasa
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲18 | 14.14 ▼0.62 | 1.61 ▼0.30 | 36.93 ▼6.28 |
Dashboard /wp-admin | 2,198 ▲18 | 5.62 ▲0.00 | 89.25 ▼8.32 | 39.65 ▼7.10 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.95 ▼0.20 | 33.96 ▼4.26 | 30.66 ▼2.58 |
Add New Post /wp-admin/post-new.php | 1,526 ▼19 | 22.91 ▼2.24 | 674.88 ▲27.00 | 52.27 ▼16.44 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.21 ▲0.00 | 98.49 ▼4.74 | 42.06 ▼2.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 take a closer look at the following
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mrkv-vchasno-kasa/classes/mrkv-connect-data.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function WC() in wp-content/plugins/mrkv-vchasno-kasa/templates/mrkv-setting-page-template.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mrkv-vchasno-kasa/classes/mrkv-vchasno-kasa-api.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mrkv-vchasno-kasa/classes/mrkv-shift.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mrkv-vchasno-kasa/classes/mrkv-vchasno-kasa-receipt.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mrkv-vchasno-kasa/templates/mrkv-widget-template.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: woocommerce, vchasno kasa
mrkv-vchasno-kasa/mrkv-vchasno-kasa.php 92% from 13 tests
The main file in "Vchasno Kasa" v. 0.8.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,048 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 234 | 562 | 956 |
CSS | 2 | 3 | 8 | 69 |
SVG | 2 | 0 | 0 | 20 |
Markdown | 1 | 0 | 0 | 2 |
JavaScript | 1 | 1 | 1 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 10.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 2.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 37 | 82.22% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 17.78% |
Functions | 4 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 4 | 100.00% |
Constants | 8 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 8 | 100.00% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/imgs/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |