Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.41MB] [CPU: ▼11.17ms] Passed 4 tests
An overview of server-side resources used by Delyva
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 47.88 ▲7.04 |
Dashboard /wp-admin | 3.58 ▲0.28 | 59.35 ▲8.03 |
Posts /wp-admin/edit.php | 3.69 ▲0.34 | 52.09 ▼3.71 |
Add New Post /wp-admin/post-new.php | 3.43 ▼2.46 | 42.38 ▼50.81 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 41.78 ▲2.81 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
recovery_mode_email_last_sent |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Delyva
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲28 | 14.10 ▼0.25 | 1.84 ▼0.03 | 44.10 ▲1.57 |
Dashboard /wp-admin | 2,198 ▲18 | 5.62 ▼0.03 | 87.21 ▼5.68 | 42.77 ▲3.33 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.95 ▼0.03 | 33.43 ▼7.12 | 39.36 ▲3.66 |
Add New Post /wp-admin/post-new.php | 45 ▼1,483 | 0.42 ▼20.47 | 0.08 ▼729.22 | 9.13 ▼64.53 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.27 ▲0.15 | 97.29 ▼21.71 | 61.18 ▲13.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- recovery_mode_email_last_sent
- theysaidso_admin_options
- widget_recent-posts
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 5× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/delyvax/includes/delyvax-webhook.php
- > /wp-content/plugins/delyvax/delyvax.php
- > /wp-content/plugins/delyvax/functions.php
- > /wp-content/plugins/delyvax/includes/shipping-widget.php
- > /wp-content/plugins/delyvax/includes/delyvax-shipping.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
4 plugin tags: delivery, shipping, courier, delyva
delyvax/delyvax.php 92% from 13 tests
The main file in "Delyva" v. 1.1.51 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 158 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin2,898 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 550 | 474 | 2,898 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 105)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 42.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 126.00 |
Average method complexity | 5.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 105.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 | 34 | |
▷ Static methods | 12 | 35.29% |
▷ Public methods | 27 | 79.41% |
▷ Protected methods | 7 | 20.59% |
▷ Private methods | 0 | 0.00% |
Functions | 40 | |
▷ Named functions | 40 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin