Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- Install procedure had errors
- > Error in wp-content/plugins/c-h-robinson-shipping/hitshipo_chr_basic.php+32
Uncaught Error: Call to undefined function WC() in wp-content/plugins/c-h-robinson-shipping/hitshipo_chr_basic.php:32
Stack trace:
#0 wp-includes/class-wp-hook.php(312): hitshipo_woo_chr_plugin_activation()
#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/includes/plugin.php(720): do_action()
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.87ms] Passed 4 tests
Analyzing server-side resources used by C.H. Robinson Shipping
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.95 ▼3.59 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.44 ▼2.79 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 48.15 ▼2.11 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 88.81 ▼4.37 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.77 ▼4.71 |
Server storage [IO: ▲8.26MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 1,338 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for C.H. Robinson Shipping
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 13.59 ▼0.79 | 1.83 ▲0.11 | 43.01 ▼1.05 |
Dashboard /wp-admin | 2,221 ▲18 | 5.05 ▲0.20 | 111.65 ▲4.35 | 42.03 ▲0.97 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.18 ▲0.17 | 33.83 ▼6.57 | 34.67 ▼0.35 |
Add New Post /wp-admin/post-new.php | 1,546 ▼0 | 23.19 ▲0.03 | 638.29 ▼38.97 | 65.30 ▲10.47 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.30 ▲0.16 | 103.50 ▼15.22 | 41.75 ▼8.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 75% 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 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
Almost there! Just fix the following items
- 693× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/c-h-robinson-shipping/controllors/classes/gtrans/vendor/google/common-protos/src/Api/Servicecontrol/V1/QuotaError.php:17
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/c-h-robinson-shipping/controllors/classes/gtrans/vendor/google/common-protos/src/Api/Service.php:36
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/c-h-robinson-shipping/controllors/classes/gtrans/vendor/google/cloud-translate/src/V3/SupportedLanguages.php:16
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/c-h-robinson-shipping/controllors/classes/gtrans/vendor/google/protobuf/src/Google/Protobuf/Internal/MessageOptions.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/c-h-robinson-shipping/controllors/classes/gtrans/vendor/monolog/monolog/src/Monolog/Processor/MemoryProcessor.php:19
- > PHP Fatal error
Uncaught Error: Class 'Google\\Cloud\\Core\\Exception\\ServiceException' not found in wp-content/plugins/c-h-robinson-shipping/controllors/classes/gtrans/vendor/google/cloud-core/src/Exception/DeadlineExceededException.php:24
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/c-h-robinson-shipping/controllors/classes/gtrans/vendor/monolog/monolog/src/Monolog/Handler/DoctrineCouchDBHandler.php:24
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/c-h-robinson-shipping/controllors/classes/gtrans/vendor/google/gax/src/Testing/MockResponse.php:14
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/c-h-robinson-shipping/controllors/classes/gtrans/vendor/google/protobuf/src/Google/Protobuf/Int64Value.php:17
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/c-h-robinson-shipping/controllors/classes/gtrans/vendor/google/common-protos/src/Api/Page.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (CHR Account integration settings.), #2 (Shipper address configuration.), #3 (Packing algorithm configurations.), #4 (Shipping rates configuration & shipping services list.), #5 (Shipping label, tracking, pickup configuration.), #6 (Order page where you can easily get labels.), #7 (Cart Page - Shipping rates working.), #8 (Checkout - Order placed with the CHR carrier.), #9 (Create shiping label screen in edit order page. This is for manual usage.), #10 (Shipping label management section - HITShipo.), #11 (Check tracking informations - HITShipo.), #12 (Check tracking informations - In the site my account section.), #13 (Shipping label & Management information.)
c-h-robinson-shipping/hitshipo_chr_basic.php 77% from 13 tests
Analyzing the main PHP file in "C.H. Robinson Shipping" version 1.1.7
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("c-h-robinson-shipping.php" instead of "hitshipo_chr_basic.php")
- Requires at least: The required version number did not match the one declared in readme.txt ("4.0.1" instead of "2.6")
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
These items require your attention
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/c-h-robinson-shipping/controllors/classes/gtrans/vendor/bin/google-cloud-batch.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,189 | 16,216 | 71,328 | 73,550 |
Markdown | 42 | 1,668 | 0 | 5,164 |
JSON | 36 | 4 | 0 | 3,250 |
XSLT | 2 | 23 | 20 | 209 |
Bourne Shell | 9 | 46 | 81 | 172 |
YAML | 4 | 10 | 0 | 98 |
Protocol Buffers | 2 | 14 | 38 | 62 |
XML | 4 | 0 | 5 | 51 |
Python | 1 | 17 | 43 | 46 |
make | 1 | 4 | 0 | 9 |
DOS Batch | 1 | 0 | 0 | 4 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please tend to the following items
- Please reduce cyclomatic complexity of methods to less than 100 (currently 170)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 5.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 589.00 |
Average method complexity | 1.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 170.00 |
Code structure | ||
---|---|---|
Namespaces | 165 | |
Interfaces | 52 | |
Traits | 58 | |
Classes | 1,052 | |
▷ Abstract classes | 18 | 1.71% |
▷ Concrete classes | 1,034 | 98.29% |
▷ Final classes | 15 | 1.45% |
Methods | 6,460 | |
▷ Static methods | 562 | 8.70% |
▷ Public methods | 5,717 | 88.50% |
▷ Protected methods | 235 | 3.64% |
▷ Private methods | 508 | 7.86% |
Functions | 292 | |
▷ Named functions | 78 | 26.71% |
▷ Anonymous functions | 214 | 73.29% |
Constants | 584 | |
▷ Global constants | 3 | 0.51% |
▷ Class constants | 581 | 99.49% |
▷ Public constants | 561 | 96.56% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
controllors/views/hchr.png | 3.61KB | 2.97KB | ▼ 17.80% |
controllors/views/chr.png | 20.79KB | 11.76KB | ▼ 43.44% |
chr.png | 20.79KB | 11.76KB | ▼ 43.44% |