Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.45MB] [CPU: ▼24.08ms] Passed 4 tests
Analyzing server-side resources used by Sprint
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.29 | 43.45 ▲4.71 |
Dashboard /wp-admin | 3.50 ▲0.15 | 34.03 ▼24.30 |
Posts /wp-admin/edit.php | 3.57 ▲0.20 | 36.64 ▼9.18 |
Add New Post /wp-admin/post-new.php | 3.48 ▼2.41 | 38.15 ▼63.06 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 34.51 ▲0.21 |
Orders /wp-admin/admin.php?page=erp-sprint | 3.47 | 34.96 |
Setting /wp-admin/admin.php?page=erp-sprint-setting | 3.47 | 30.32 |
Calculate Tariff /wp-admin/admin.php?page=erp-sprint-calculate-tariff | 3.47 | 32.13 |
Vendor /wp-admin/admin.php?page=erp-sprint-vendor | 3.47 | 29.43 |
Pickup Request /wp-admin/admin.php?page=erp-sprint-pickup-request | 3.47 | 29.92 |
Create Waybill /wp-admin/admin.php?page=erp-sprint-create-waybill | 3.47 | 31.09 |
Server storage [IO: ▲0.64MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 52 new files
Database: 4 new tables, 7 new options
New tables |
---|
wp_logixgridwaybillSecureKey |
hello |
wp_logixgridsetting |
wp_logixgridvendor |
New WordPress options |
---|
widget_recent-posts |
recovery_mode_email_last_sent |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Sprint
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 1,507 ▼1,264 | 12.75 ▼1.60 | 1.81 ▲0.21 | 42.55 ▲2.01 |
Dashboard /wp-admin | 900 ▼1,281 | 1.72 ▼3.98 | 20.70 ▼81.95 | 22.28 ▼17.70 |
Posts /wp-admin/edit.php | 911 ▼1,189 | 1.52 ▼0.43 | 9.83 ▼28.48 | 20.51 ▼14.45 |
Add New Post /wp-admin/post-new.php | 628 ▼907 | 1.98 ▼16.22 | 23.09 ▼631.05 | 7.96 ▼49.60 |
Media Library /wp-admin/upload.php | 796 ▼601 | 2.10 ▼2.29 | 28.28 ▼67.74 | 24.21 ▼15.38 |
Orders /wp-admin/admin.php?page=erp-sprint | 731 | 1.52 | 10.69 | 21.40 |
Setting /wp-admin/admin.php?page=erp-sprint-setting | 731 | 1.52 | 9.65 | 16.38 |
Calculate Tariff /wp-admin/admin.php?page=erp-sprint-calculate-tariff | 731 | 1.52 | 9.77 | 19.90 |
Vendor /wp-admin/admin.php?page=erp-sprint-vendor | 731 | 1.52 | 9.81 | 18.92 |
Pickup Request /wp-admin/admin.php?page=erp-sprint-pickup-request | 731 | 1.52 | 10.08 | 17.03 |
Create Waybill /wp-admin/admin.php?page=erp-sprint-create-waybill | 731 | 1.69 | 9.37 | 21.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The plugin did not uninstall successfully, leaving 4 tables in the database
- hello
- wp_logixgridwaybillSecureKey
- wp_logixgridsetting
- wp_logixgridvendor
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- theysaidso_admin_options
- recovery_mode_email_last_sent
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=erp-sprint-create-waybill
- > Error in wp-content/plugins/sprint/sprint.php+247
Uncaught Error: Call to undefined function wc_clean() in wp-content/plugins/sprint/sprint.php:247
Stack trace:
#0 wp-includes/class-wp-hook.php(310): waybill_admin_notices()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/admin-header.php(303): do_action()
#4 wp-admin/admin.php(239): require_once('/var/www/wordpr...')
#5 {main}
thrown
SRP 0% 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
Almost there! Just fix the following items
- 6× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/sprint/templates/erp_sprint_pickup_request.php
- > /wp-content/plugins/sprint/sprint.php
- > /wp-content/plugins/sprint/templates/erp_sprint_calculate_tariff.php
- > /wp-content/plugins/sprint/templates/erp_sprint_vendor.php
- > /wp-content/plugins/sprint/templates/erp_sprint_create_waybill.php
- > /wp-content/plugins/sprint/templates/erp_sprint_orders.php
- 26× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: RespStates in wp-content/plugins/sprint/templates/erp_sprint_calculate_tariff.php on line 145
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/sprint/templates/erp_sprint_calculate_tariff.php on line 129
- > PHP Notice
Undefined variable: services in wp-content/plugins/sprint/templates/erp_sprint_calculate_tariff.php on line 219
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/sprint/templates/erp_sprint_create_waybill.php on line 188
- > PHP Notice
Undefined variable: services in wp-content/plugins/sprint/templates/erp_sprint_create_waybill.php on line 188
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/sprint/templates/erp_sprint_calculate_tariff.php on line 178
- > PHP Notice
Undefined variable: RespStates in wp-content/plugins/sprint/templates/erp_sprint_calculate_tariff.php on line 190
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/sprint/templates/erp_sprint_calculate_tariff.php on line 219
- > PHP Notice
Undefined variable: country in wp-content/plugins/sprint/templates/erp_sprint_calculate_tariff.php on line 178
- > PHP Notice
Undefined variable: vendor_list in wp-content/plugins/sprint/templates/erp_sprint_vendor.php on line 321
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add descriptions for screenshots #1, #2 in sprint/assets to your readme.txt
sprint/sprint.php 85% from 13 tests
The primary PHP file in "Sprint" version 3.6 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Requires at least: Required version must match the one declared in readme.txt ("5.1" instead of "1.0")
- Text Domain: Please use dashes and lowercase characters for text domains
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected11,734 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 2,016 | 7,000 | 6,920 |
PHP | 31 | 344 | 308 | 4,383 |
CSS | 1 | 3 | 30 | 415 |
JSON | 1 | 0 | 0 | 16 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 9.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 1 | 5.56% |
Methods | 80 | |
▷ Static methods | 16 | 20.00% |
▷ Public methods | 75 | 93.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 6.25% |
Functions | 14 | |
▷ Named functions | 11 | 78.57% |
▷ Anonymous functions | 3 | 21.43% |
Constants | 8 | |
▷ Global constants | 8 | 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
There were not PNG files found in your plugin