Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.45MB] [CPU: ▼5.93ms] Passed 4 tests
A check of server-side resources used by OPSI Israel Domestic Shipments
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.41 | 41.99 ▼0.11 |
Dashboard /wp-admin | 3.82 ▲0.47 | 51.99 ▼8.15 |
Posts /wp-admin/edit.php | 3.87 ▲0.51 | 47.31 ▼2.35 |
Add New Post /wp-admin/post-new.php | 6.34 ▲0.45 | 84.50 ▼13.09 |
Media Library /wp-admin/upload.php | 3.68 ▲0.45 | 38.09 ▲7.75 |
Change Pickup Point /wp-admin/admin.php?page=change-pickup-point | 3.55 | 29.94 |
Server storage [IO: ▲0.86MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 87 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
OPSI Israel Domestic Shipments: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲31 | 13.36 ▼1.29 | 1.75 ▼0.18 | 42.82 ▼2.29 |
Dashboard /wp-admin | 2,211 ▲26 | 5.85 ▼0.01 | 122.42 ▲12.70 | 42.67 ▲2.99 |
Posts /wp-admin/edit.php | 2,088 ▼1 | 2.02 ▲0.02 | 33.66 ▼4.93 | 34.73 ▼1.16 |
Add New Post /wp-admin/post-new.php | 1,530 ▲11 | 23.39 ▲0.30 | 682.49 ▲8.86 | 61.43 ▲5.64 |
Media Library /wp-admin/upload.php | 1,390 ▲2 | 4.17 ▼0.02 | 102.45 ▲8.63 | 44.63 ▲1.48 |
Change Pickup Point /wp-admin/admin.php?page=change-pickup-point | 15,390 | 7.85 | 187.25 | 25.76 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=change-pickup-point
- > Notice in wp-content/plugins/woo-ups-pickup/woocommerce-ups-pickups.php+386
Trying to access array offset on value of type bool
- > GET request to /wp-admin/admin.php?page=change-pickup-point
- > Notice in wp-content/plugins/woo-ups-pickup/woocommerce-ups-pickups.php+415
Undefined index: order_id
SRP 50% 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
Please fix the following
- 19× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Ups\\Service\\AbstractRestApiService' not found in wp-content/plugins/woo-ups-pickup/includes/ups/Service/GetInformationService.php:10
- > PHP Fatal error
Uncaught Error: Class 'Ups\\Service\\AbstractService' not found in wp-content/plugins/woo-ups-pickup/includes/ups/Service/Authenticate.php:8
- > PHP Fatal error
Uncaught Error: Class 'Ups\\Service\\AbstractRestApiService' not found in wp-content/plugins/woo-ups-pickup/includes/ups/Service/CreateXmlOrderService.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/woo-ups-pickup/includes/templates/email/tracking-number.php:17
- > PHP Fatal error
Uncaught Error: Class 'Ups\\Service\\AbstractService' not found in wp-content/plugins/woo-ups-pickup/includes/ups/Service/InsertPickupDrop.php:8
- > PHP Fatal error
Uncaught Error: Class 'Ups\\Service\\AbstractService' not found in wp-content/plugins/woo-ups-pickup/includes/ups/Service/SendA4LabelPdfToEmail.php:8
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/woo-ups-pickup/i18n/not-gettexted.php' (include_path='.:/usr/share/php') in wp-content/plugins/woo-ups-pickup/i18n/makepot.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Ups\\Service\\AbstractRestApiService' not found in wp-content/plugins/woo-ups-pickup/includes/ups/Service/ClosestPoints.php:10
- > PHP Fatal error
Uncaught Error: Class 'Ups\\Service\\AbstractRestApiService' not found in wp-content/plugins/woo-ups-pickup/includes/ups/Service/PrintService.php:10
- > PHP Fatal error
Uncaught Error: Class 'Ups\\Service\\AbstractRestApiService' not found in wp-content/plugins/woo-ups-pickup/includes/ups/Service/CreateWaybillService.php:10
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=change-pickup-point
- > Console-api (warning) in unknown
http://maps.googleapis.com/maps/api/js?libraries=places,geometry&language=he&key=AIzaSyD62c5ORojhBdtNA1glgJfhQkd-y22IMns 244:51 "Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading"
- > GET request to /wp-admin/admin.php?page=change-pickup-point
- > Console-api (warning) in unknown
http://maps.googleapis.com/maps/api/js?libraries=places,geometry&language=he&key=AIzaSyD62c5ORojhBdtNA1glgJfhQkd-y22IMns 172:311 "google.maps.event.addDomListener() is deprecated, use the standard\naddEventListener() method instead:\nhttps://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener\nThe feature will continue to work and there is no plan to decommission\nit."
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 81% 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
These attributes need your attention:
- Tags: There are too many tags (12 tag instead of maximum 10)
- Contributors: The plugin contributors field is missing
- Donate link: Invalid URI found ("")
woo-ups-pickup/woocommerce-ups-pickups.php 77% from 13 tests
This is the main PHP file of "OPSI Israel Domestic Shipments" version 2.5.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-ups-pickup.php" instead of "woocommerce-ups-pickups.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 162 characters long)
- Requires at least: Required version must match the one declared in readme.txt ("3.0.1" instead of "3.0.0")
Code Analysis Passed 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
No dangerous file extensions were detected8,553 lines of code in 72 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 51 | 2,420 | 2,328 | 7,551 |
JavaScript | 10 | 196 | 24 | 433 |
PO File | 4 | 111 | 135 | 359 |
CSS | 3 | 26 | 0 | 175 |
LESS | 1 | 4 | 0 | 32 |
SVG | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 27.77 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 186.00 |
Average method complexity | 3.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 39 | |
▷ Abstract classes | 2 | 5.13% |
▷ Concrete classes | 37 | 94.87% |
▷ Final classes | 0 | 0.00% |
Methods | 413 | |
▷ Static methods | 8 | 1.94% |
▷ Public methods | 342 | 82.81% |
▷ Protected methods | 24 | 5.81% |
▷ Private methods | 47 | 11.38% |
Functions | 10 | |
▷ Named functions | 6 | 60.00% |
▷ Anonymous functions | 4 | 40.00% |
Constants | 44 | |
▷ Global constants | 3 | 6.82% |
▷ Class constants | 41 | 93.18% |
▷ Public constants | 41 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.17MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/assets/screenshot-3.png | 47.78KB | 47.90KB | 0.00% |
includes/assets/screenshot-2.png | 48.36KB | 48.51KB | 0.00% |
includes/assets/screenshot-1.png | 73.91KB | 74.35KB | 0.00% |
includes/assets/logo_pickuppoint_small.png | 1.72KB | 2.12KB | 0.00% |
includes/icons/CustomOrderStatus.png | 3.64KB | 0.50KB | ▼ 86.14% |