Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.35MB] [CPU: ▲0.91ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Postmates Integration
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.85 ▲0.39 | 42.20 ▲0.97 |
Dashboard /wp-admin | 3.68 ▲0.38 | 48.28 ▼3.91 |
Posts /wp-admin/edit.php | 3.74 ▲0.38 | 50.15 ▲2.98 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.34 | 89.85 ▲4.04 |
Media Library /wp-admin/upload.php | 3.55 ▲0.32 | 37.52 ▲3.58 |
Server storage [IO: ▲0.66MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 133 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by WooCommerce Postmates Integration
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲92 | 13.22 ▼1.33 | 1.78 ▲0.12 | 41.35 ▼3.39 |
Dashboard /wp-admin | 2,211 ▲23 | 5.85 ▲0.01 | 107.32 ▲1.92 | 40.51 ▼4.07 |
Posts /wp-admin/edit.php | 2,094 ▲5 | 2.02 ▼0.00 | 40.47 ▼3.41 | 35.27 ▼0.24 |
Add New Post /wp-admin/post-new.php | 1,530 ▲11 | 23.20 ▼0.07 | 658.72 ▼2.81 | 47.50 ▼4.30 |
Media Library /wp-admin/upload.php | 1,393 ▲8 | 4.23 ▲0.02 | 99.54 ▼2.34 | 44.73 ▲0.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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
Please fix the following
- 49× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\TaskQueueInterface' not found in wp-content/plugins/woo-postmates-integration/vendor/guzzlehttp/promises/src/TaskQueue.php:13
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/woo-postmates-integration/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:12
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/woo-postmates-integration/vendor/guzzlehttp/promises/src/Coroutine.php:43
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/woo-postmates-integration/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/woo-postmates-integration/vendor/psr/http-message/src/ServerRequestInterface.php:43
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\UploadedFileInterface' not found in wp-content/plugins/woo-postmates-integration/vendor/guzzlehttp/psr7/src/UploadedFile.php:9
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/woo-postmates-integration/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php:7
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/woo-postmates-integration/vendor/guzzlehttp/promises/src/Promise.php:9
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/woo-postmates-integration/vendor/guzzlehttp/promises/src/RejectedPromise.php:10
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/woo-postmates-integration/vendor/guzzlehttp/promises/src/EachPromise.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: postmates shipping, postmates, woocommerce shipping, woocommerce, postmates-api
woo-postmates-integration/woocommerce-postmates.php 92% from 13 tests
The primary PHP file in "WooCommerce Postmates Integration" version 1.5.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-postmates-integration.php" instead of "woocommerce-postmates.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin12,502 lines of code in 125 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 104 | 1,983 | 5,063 | 8,770 |
Markdown | 10 | 961 | 0 | 3,201 |
JSON | 7 | 0 | 0 | 463 |
YAML | 2 | 10 | 0 | 43 |
XML | 1 | 0 | 0 | 16 |
make | 1 | 4 | 0 | 9 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 12.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 72.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 14 | |
Traits | 2 | |
Classes | 74 | |
▷ Abstract classes | 1 | 1.35% |
▷ Concrete classes | 73 | 98.65% |
▷ Final classes | 7 | 9.59% |
Methods | 685 | |
▷ Static methods | 64 | 9.34% |
▷ Public methods | 569 | 83.07% |
▷ Protected methods | 8 | 1.17% |
▷ Private methods | 108 | 15.77% |
Functions | 143 | |
▷ Named functions | 55 | 38.46% |
▷ Anonymous functions | 88 | 61.54% |
Constants | 55 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 55 | 100.00% |
▷ Public constants | 55 | 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
PNG images were not found in this plugin