Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Error in wp-content/plugins/woo-picup-shipping/src/Adapters/WoocommerceAdapter.php+56
Uncaught Error: Call to undefined function wc_add_notice() in wp-content/plugins/woo-picup-shipping/src/Adapters/WoocommerceAdapter.php:56
Stack trace:
#0 wp-content/plugins/woo-picup-shipping/src/WooPicupShipping.php(109): PicupTechnologies\WooPicupShipping\Adapters\WoocommerceAdapter->addNotice()
#1 wp-content/plugins/woo-picup-shipping/woo-picup-shipping.php(18): PicupTechnologies\WooPicupShipping\WooPicupShipping->__construct()
#2 wp-admin/includes/plugin.php(2318): include_once('/var/www/wordpr...')
#3 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()
Server metrics [RAM: ▲0.00MB] [CPU: ▲0.19ms] Passed 4 tests
Analyzing server-side resources used by Picup Shipping for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.15 ▼2.60 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.14 ▲1.85 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.12 ▲4.21 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.47 ▼1.95 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.48 ▲3.47 |
Server storage [IO: ▲1.28MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 335 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Picup Shipping for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.64 ▼0.73 | 1.80 ▼0.33 | 43.29 ▼0.99 |
Dashboard /wp-admin | 2,206 ▲30 | 5.84 ▼0.15 | 102.84 ▼9.36 | 36.11 ▼11.82 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▲0.00 | 40.75 ▲3.52 | 35.16 ▲0.47 |
Add New Post /wp-admin/post-new.php | 1,539 ▲25 | 23.05 ▲5.49 | 628.17 ▼38.22 | 51.79 ▼0.08 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.21 ▼0.01 | 96.86 ▼8.06 | 40.46 ▼3.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/woo-picup-shipping/templates/generic-management.php
- > /wp-content/plugins/woo-picup-shipping/templates/shift-management.php
- 132× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Money\\Exchange' not found in wp-content/plugins/woo-picup-shipping/vendor/moneyphp/money/src/Exchange/IndirectExchange.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function PicupTechnologies\\WooPicupShipping\\Adapters\\apply_filters() in wp-content/plugins/woo-picup-shipping/src/Adapters/WoocommerceAdapter.php:23
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/woo-picup-shipping/vendor/moneyphp/money/resources/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/woo-picup-shipping/vendor/moneyphp/money/resources/generate-money-factory.php on line 3
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/woo-picup-shipping/vendor/guzzlehttp/psr7/src/LimitStream.php:10
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/woo-picup-shipping/vendor/guzzlehttp/guzzle/src/Exception/ClientException.php:7
- > PHP Fatal error
Uncaught Error: Class 'SebastianBergmann\\Comparator\\Comparator' not found in wp-content/plugins/woo-picup-shipping/vendor/moneyphp/money/src/PHPUnit/Comparator.php:19
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/woo-picup-shipping/vendor/guzzlehttp/promises/src/AggregateException.php:7
- > PHP Fatal error
Uncaught Error: Interface 'PicupTechnologies\\PicupPHPApi\\Contracts\\PicupRequestInterface' not found in wp-content/plugins/woo-picup-shipping/vendor/picup/picup-php-api/src/Requests/ThirdPartyCollectionRequest.php:14
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/woo-picup-shipping/src/ShippingMethods/PicupGenericOrder.php:10
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/woo-picup-shipping/vendor/picup/picup-php-api/tests/Objects/DeliverySenderContactTest.php:10
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
1 plugin tags: shipping
woo-picup-shipping/woo-picup-shipping.php 92% from 13 tests
The main file in "Picup Shipping for WooCommerce" v. 3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("5.1" instead of "3.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin25,228 lines of code in 320 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 285 | 4,777 | 10,288 | 19,734 |
Markdown | 13 | 1,226 | 0 | 3,601 |
JSON | 12 | 0 | 0 | 1,682 |
XML | 4 | 0 | 8 | 95 |
YAML | 3 | 11 | 0 | 86 |
CSS | 1 | 2 | 0 | 11 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
PHP code Passed 2 tests
Analyzing 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.30 |
Average class complexity | 7.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 82.00 |
Average method complexity | 2.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 48 | |
Interfaces | 26 | |
Traits | 3 | |
Classes | 234 | |
▷ Abstract classes | 3 | 1.28% |
▷ Concrete classes | 231 | 98.72% |
▷ Final classes | 129 | 55.84% |
Methods | 1,611 | |
▷ Static methods | 130 | 8.07% |
▷ Public methods | 1,452 | 90.13% |
▷ Protected methods | 7 | 0.43% |
▷ Private methods | 152 | 9.44% |
Functions | 152 | |
▷ Named functions | 57 | 37.50% |
▷ Anonymous functions | 95 | 62.50% |
Constants | 70 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 70 | 100.00% |
▷ Public constants | 70 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin