Benchmarks
Plugin footprint 82% 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.00MB] [CPU: ▼1.78ms] Passed 4 tests
A check of server-side resources used by The Courier Guy Shipping for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 41.97 ▼0.13 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.57 ▼3.29 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.11 ▲1.98 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.45 ▼2.64 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.71 ▼1.05 |
Server storage [IO: ▲32.13MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please try to fix the following items
- Filesystem usage must be lower than 25MB (currently using 32.13MB)
Filesystem: 2,582 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by The Courier Guy Shipping for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲3 | 14.31 ▼0.12 | 1.76 ▼0.20 | 43.70 ▼0.78 |
Dashboard /wp-admin | 2,195 ▲17 | 5.58 ▼0.01 | 90.62 ▼30.85 | 43.26 ▼3.11 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.96 ▼0.05 | 39.57 ▼0.48 | 36.07 ▲1.24 |
Add New Post /wp-admin/post-new.php | 1,527 ▼9 | 21.08 ▼2.15 | 581.50 ▼20.15 | 53.96 ▲6.58 |
Media Library /wp-admin/upload.php | 1,391 ▼3 | 4.16 ▼0.04 | 97.09 ▼0.50 | 41.09 ▼2.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 6× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/the-courier-guy/Includes/ls-framework-custom/Templates/form-field-number.php
- > /wp-content/plugins/the-courier-guy/vendor/mtdowling/jmespath.php/bin/jp.php
- > /wp-content/plugins/the-courier-guy/Includes/ls-framework-custom/Templates/form-field-wrapper.php
- > /wp-content/plugins/the-courier-guy/Includes/ls-framework-custom/Templates/form-field-text.php
- > /wp-content/plugins/the-courier-guy/Includes/ls-framework-custom/Templates/form-field-checkbox.php
- > /wp-content/plugins/the-courier-guy/Includes/ls-framework-custom/Templates/form-field-textarea.php
- 942× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/the-courier-guy/vendor/aws/aws-sdk-php/src/OpenSearchServerless/OpenSearchServerlessClient.php:71
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/the-courier-guy/Includes/ls-framework-custom/Core/CustomPlugin.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/the-courier-guy/vendor/aws/aws-sdk-php/src/Braket/Exception/BraketException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/the-courier-guy/vendor/aws/aws-sdk-php/src/CostExplorer/Exception/CostExplorerException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/the-courier-guy/vendor/aws/aws-sdk-php/src/GlueDataBrew/Exception/GlueDataBrewException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/the-courier-guy/vendor/aws/aws-sdk-php/src/Rds/RdsClient.php:296
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/the-courier-guy/vendor/aws/aws-sdk-php/src/SageMakerMetrics/SageMakerMetricsClient.php:11
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/the-courier-guy/vendor/aws/aws-sdk-php/src/SimSpaceWeaver/SimSpaceWeaverClient.php:41
- > PHP Fatal error
Uncaught Error: Interface 'Aws\\MonitoringEventsInterface' not found in wp-content/plugins/the-courier-guy/vendor/aws/aws-sdk-php/src/Exception/IncalculablePayloadException.php:7
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/the-courier-guy/vendor/aws/aws-sdk-php/src/CloudTrailData/CloudTrailDataClient.php:11
- > PHP Fatal error
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 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Contributors: The plugin contributors field is not present
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4 in the-courier-guy/assets to your readme.txt
the-courier-guy/TheCourierGuy.php 85% from 13 tests
The primary PHP file in "The Courier Guy Shipping for WooCommerce" version 5.1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("the-courier-guy.php" instead of "TheCourierGuy.php")
- Requires at least: Required version must match the one declared in readme.txt ("5.6.0" instead of "7.0.0")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin76,071 lines of code in 2,560 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2,512 | 9,384 | 50,322 | 69,864 |
Markdown | 23 | 1,303 | 0 | 3,847 |
JSON | 15 | 7 | 0 | 1,633 |
JavaScript | 2 | 37 | 14 | 541 |
YAML | 5 | 20 | 3 | 88 |
reStructuredText | 1 | 35 | 29 | 59 |
CSS | 1 | 8 | 2 | 29 |
Dockerfile | 1 | 8 | 0 | 10 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 5.96 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 183.00 |
Average method complexity | 2.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 763 | |
Interfaces | 55 | |
Traits | 27 | |
Classes | 1,059 | |
▷ Abstract classes | 18 | 1.70% |
▷ Concrete classes | 1,041 | 98.30% |
▷ Final classes | 40 | 3.84% |
Methods | 3,123 | |
▷ Static methods | 597 | 19.12% |
▷ Public methods | 2,173 | 69.58% |
▷ Protected methods | 147 | 4.71% |
▷ Private methods | 803 | 25.71% |
Functions | 557 | |
▷ Named functions | 142 | 25.49% |
▷ Anonymous functions | 415 | 74.51% |
Constants | 401 | |
▷ Global constants | 79 | 19.70% |
▷ Class constants | 322 | 80.30% |
▷ Public constants | 322 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dist/images/tcg_logo.png | 41.05KB | 8.32KB | ▼ 79.73% |