Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.05MB] [CPU: ▼25.03ms] Passed 4 tests
An overview of server-side resources used by Woocommerce Stidner Shipping - Payson Checkout
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.35 ▼0.11 | 24.37 ▼21.13 |
Dashboard /wp-admin | 3.67 ▲0.33 | 48.96 ▼21.28 |
Posts /wp-admin/edit.php | 3.77 ▲0.42 | 44.85 ▼2.07 |
Add New Post /wp-admin/post-new.php | 5.03 ▼0.85 | 45.14 ▼55.63 |
Media Library /wp-admin/upload.php | 3.67 ▲0.44 | 42.75 ▲4.76 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 72 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
recovery_mode_email_last_sent |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Woocommerce Stidner Shipping - Payson Checkout
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 1,419 ▼1,342 | 3.42 ▼10.95 | 0.43 ▼2.48 | 7.81 ▼37.85 |
Dashboard /wp-admin | 1,260 ▼917 | 1.36 ▼4.25 | 12.63 ▼82.26 | 33.90 ▼9.87 |
Posts /wp-admin/edit.php | 1,105 ▼992 | 1.51 ▼0.45 | 7.17 ▼28.76 | 27.64 ▼8.13 |
Add New Post /wp-admin/post-new.php | 45 ▼1,481 | 0.42 ▼22.64 | 0.11 ▼634.60 | 9.99 ▼41.22 |
Media Library /wp-admin/upload.php | 1,399 ▼1 | 4.09 ▼0.08 | 119.15 ▲12.91 | 63.28 ▲17.04 |
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
- The uninstall procedure has failed, leaving 7 options in the database
- recovery_mode_email_last_sent
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- 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
The smoke test was a success, however most plugin functionality was not tested
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
- 18× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stidner\\Api\\Stidner\\Objects\\AbstractObject' not found in wp-content/plugins/stidner-shipping-payson-checkout/lib/src/Api/Stidner/Objects/Item.php:9
- > PHP Fatal error
Uncaught Error: Class 'Stidner\\Config' not found in wp-content/plugins/stidner-shipping-payson-checkout/lib/src/Init.php:17
- > PHP Fatal error
Uncaught Error: Class 'Stidner\\Api\\Stidner\\Objects\\AbstractObject' not found in wp-content/plugins/stidner-shipping-payson-checkout/lib/src/Api/Stidner/Objects/TrackingEvent.php:9
- > PHP Fatal error
Uncaught Error: Class 'Stidner\\Api\\Stidner\\Objects\\AbstractObject' not found in wp-content/plugins/stidner-shipping-payson-checkout/lib/src/Api/Stidner/Objects/UserGrant.php:9
- > PHP Fatal error
Uncaught Error: Class 'Stidner\\Api\\Stidner\\Objects\\AbstractObject' not found in wp-content/plugins/stidner-shipping-payson-checkout/lib/src/Api/Stidner/Objects/ServicePoint.php:13
- > PHP Fatal error
Uncaught Error: Class 'Stidner\\Api\\Stidner\\Objects\\AbstractObject' not found in wp-content/plugins/stidner-shipping-payson-checkout/lib/src/Api/Stidner/Objects/OrderProducts.php:9
- > PHP Fatal error
Uncaught Error: Class 'Stidner\\Api\\Stidner\\Objects\\AbstractObject' not found in wp-content/plugins/stidner-shipping-payson-checkout/lib/src/Api/Stidner/Objects/Marketplace.php:9
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/stidner-shipping-payson-checkout/lib/src/Woocommerce/Shipping.php:11
- > PHP Fatal error
Uncaught Error: Class 'Stidner\\Api\\Stidner\\Objects\\AbstractObject' not found in wp-content/plugins/stidner-shipping-payson-checkout/lib/src/Api/Stidner/Objects/Agreement.php:9
- > PHP Fatal error
Uncaught Error: Class 'Stidner\\Api\\Stidner\\Objects\\AbstractObject' not found in wp-content/plugins/stidner-shipping-payson-checkout/lib/src/Api/Stidner/Objects/Package.php:13
- > 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)
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Requires php: Version not formatted correctly
- Contributors: Plugin contributors field is missing
stidner-shipping-payson-checkout/stidner.php 77% from 13 tests
The primary PHP file in "Woocommerce Stidner Shipping - Payson Checkout" version 1.3.7 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("stidner-shipping-payson-checkout.php" instead of "stidner.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Description: Please don't use more than 140 characters for the plugin description (currently 172 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin6,152 lines of code in 67 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 58 | 1,495 | 2,984 | 5,383 |
PO File | 2 | 239 | 345 | 593 |
JavaScript | 1 | 9 | 3 | 136 |
CSS | 2 | 4 | 0 | 19 |
JSON | 2 | 0 | 0 | 19 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 9.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 110.00 |
Average method complexity | 1.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 48 | |
▷ Abstract classes | 3 | 6.25% |
▷ Concrete classes | 45 | 93.75% |
▷ Final classes | 0 | 0.00% |
Methods | 453 | |
▷ Static methods | 74 | 16.34% |
▷ Public methods | 406 | 89.62% |
▷ Protected methods | 2 | 0.44% |
▷ Private methods | 45 | 9.93% |
Functions | 12 | |
▷ Named functions | 2 | 16.67% |
▷ Anonymous functions | 10 | 83.33% |
Constants | 49 | |
▷ Global constants | 3 | 6.12% |
▷ Class constants | 46 | 93.88% |
▷ Public constants | 46 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin