Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.86ms] Passed 4 tests
An overview of server-side resources used by UPS Shipping and UPS Access Point™: Official Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.59 ▼13.65 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.26 ▼4.53 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.01 ▲4.51 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.23 ▼12.16 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.26 ▼5.08 |
Server storage [IO: ▲9.61MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 568 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for UPS Shipping and UPS Access Point™: Official Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲99 | 14.43 ▲0.22 | 1.88 ▼0.77 | 37.00 ▼18.51 |
Dashboard /wp-admin | 2,206 ▲15 | 5.83 ▼0.07 | 104.18 ▼1.91 | 43.96 ▲7.43 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.02 ▼0.02 | 36.09 ▼3.32 | 37.74 ▲5.24 |
Add New Post /wp-admin/post-new.php | 1,421 ▼112 | 17.09 ▼6.06 | 550.17 ▼110.56 | 40.57 ▼13.33 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.17 ▼0.04 | 94.85 ▼20.16 | 40.74 ▼2.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 4095× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
feof() expects parameter 1 to be resource, bool given in wp-content/plugins/ups-eu-woocommerce/languages/BuildTranslates.php on line 41
- > PHP Warning
feof() expects parameter 1 to be resource, bool given in wp-content/plugins/ups-eu-woocommerce/languages/BuildTranslates.php on line 41
- > PHP Warning
feof() expects parameter 1 to be resource, bool given in wp-content/plugins/ups-eu-woocommerce/languages/BuildTranslates.php on line 41
- > PHP Warning
fgets() expects parameter 1 to be resource, bool given in wp-content/plugins/ups-eu-woocommerce/languages/BuildTranslates.php on line 42
- > PHP Warning
feof() expects parameter 1 to be resource, bool given in wp-content/plugins/ups-eu-woocommerce/languages/BuildTranslates.php on line 41
- > PHP Warning
fgets() expects parameter 1 to be resource, bool given in wp-content/plugins/ups-eu-woocommerce/languages/BuildTranslates.php on line 42
- > PHP Warning
feof() expects parameter 1 to be resource, bool given in wp-content/plugins/ups-eu-woocommerce/languages/BuildTranslates.php on line 41
- > PHP Warning
feof() expects parameter 1 to be resource, bool given in wp-content/plugins/ups-eu-woocommerce/languages/BuildTranslates.php on line 41
- > PHP Warning
fgets() expects parameter 1 to be resource, bool given in wp-content/plugins/ups-eu-woocommerce/languages/BuildTranslates.php on line 42
- > PHP Warning
feof() expects parameter 1 to be resource, bool given in wp-content/plugins/ups-eu-woocommerce/languages/BuildTranslates.php on line 41
- > PHP Warning
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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Contributors: The plugin contributors field is not present
ups-eu-woocommerce/ups-eu-woocommerce.php 92% from 13 tests
This is the main PHP file of "UPS Shipping and UPS Access Point™: Official Plugin" version 3.8.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 214 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin66,995 lines of code in 435 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 369 | 4,503 | 21,178 | 47,028 |
PO File | 8 | 3,761 | 3,735 | 10,311 |
Smarty | 43 | 511 | 227 | 8,877 |
SVG | 2 | 27 | 1 | 567 |
JSON | 3 | 0 | 0 | 128 |
Markdown | 2 | 24 | 0 | 70 |
JavaScript | 5 | 2 | 31 | 12 |
CSS | 2 | 1 | 9 | 1 |
INI | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 18.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 330.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 91.00 |
Code structure | ||
---|---|---|
Namespaces | 16 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 328 | |
▷ Abstract classes | 14 | 4.27% |
▷ Concrete classes | 314 | 95.73% |
▷ Final classes | 0 | 0.00% |
Methods | 1,950 | |
▷ Static methods | 55 | 2.82% |
▷ Public methods | 1,697 | 87.03% |
▷ Protected methods | 57 | 2.92% |
▷ Private methods | 196 | 10.05% |
Functions | 92 | |
▷ Named functions | 80 | 86.96% |
▷ Anonymous functions | 12 | 13.04% |
Constants | 170 | |
▷ Global constants | 9 | 5.29% |
▷ Class constants | 161 | 94.71% |
▷ Public constants | 161 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin/css/images/ui-icons_444444_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
assets/admin/css/images/ui-icons_555555_256x240.png | 6.82KB | 4.17KB | ▼ 38.82% |
assets/admin/images/removePackage.png | 0.26KB | 0.19KB | ▼ 26.62% |
assets/admin/images/checked.png | 0.46KB | 0.35KB | ▼ 23.31% |
assets/admin/images/address.png | 2.20KB | 1.50KB | ▼ 31.91% |