Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.32MB] [CPU: ▲0.20ms] Passed 4 tests
A check of server-side resources used by Paps shipping for WooCommerce plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.36 | 37.43 ▼2.66 |
Dashboard /wp-admin | 3.66 ▲0.36 | 49.49 ▲0.36 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 51.31 ▲4.63 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.29 | 84.26 ▼1.52 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 36.62 ▲4.79 |
Server storage [IO: ▲2.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 327 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Paps shipping for WooCommerce plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.54 ▼0.83 | 1.66 ▼0.26 | 40.08 ▼5.53 |
Dashboard /wp-admin | 2,203 ▲15 | 4.89 ▼0.01 | 107.13 ▼1.59 | 38.38 ▼6.15 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 1.97 ▼0.18 | 35.57 ▼5.43 | 32.04 ▼5.10 |
Add New Post /wp-admin/post-new.php | 1,514 ▼21 | 17.71 ▼5.31 | 687.37 ▲29.76 | 65.28 ▲16.36 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.17 ▼0.03 | 95.01 ▼4.13 | 43.08 ▲1.61 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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 items
- 139× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/paps-shipping-for-woocommerce/vendor/guzzlehttp/streams/tests/CachingStreamTest.php:11
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Stream\\StreamInterface' not found in wp-content/plugins/paps-shipping-for-woocommerce/vendor/guzzlehttp/streams/src/NoSeekStream.php:7
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Stream\\StreamInterface' not found in wp-content/plugins/paps-shipping-for-woocommerce/vendor/guzzlehttp/streams/src/FnStream.php:10
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/paps-shipping-for-woocommerce/vendor/guzzlehttp/streams/tests/LazyOpenStreamTest.php:6
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Message\\MessageInterface' not found in wp-content/plugins/paps-shipping-for-woocommerce/vendor/guzzlehttp/guzzle/src/Message/ResponseInterface.php:7
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\ToArrayInterface' not found in wp-content/plugins/paps-shipping-for-woocommerce/vendor/guzzlehttp/guzzle/src/Collection.php:7
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Ring\\Future\\FutureInterface' not found in wp-content/plugins/paps-shipping-for-woocommerce/vendor/guzzlehttp/ringphp/src/Future/FutureArrayInterface.php:7
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Message\\MessageFactoryInterface' not found in wp-content/plugins/paps-shipping-for-woocommerce/vendor/guzzlehttp/guzzle/src/Message/MessageFactory.php:21
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/paps-shipping-for-woocommerce/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php:4
- > PHP Fatal error
Uncaught Error: Interface 'React\\Promise\\PromiseInterface' not found in wp-content/plugins/paps-shipping-for-woocommerce/vendor/react/promise/src/CancellablePromiseInterface.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #4 (Settings.), #5 (Settings.)
paps-shipping-for-woocommerce/paps-shipping-for-woocommerce.php Passed 13 tests
"Paps shipping for WooCommerce plugin" version 3.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
61 characters long description:
Paps Shipping & Delivery Tracking Integration for WooCommerce
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
There were no executable files found in this plugin26,904 lines of code in 295 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 247 | 3,838 | 9,173 | 21,119 |
Markdown | 14 | 1,343 | 0 | 4,085 |
JSON | 12 | 0 | 0 | 673 |
reStructuredText | 9 | 263 | 333 | 517 |
make | 4 | 45 | 5 | 181 |
JavaScript | 1 | 18 | 60 | 163 |
YAML | 4 | 22 | 2 | 100 |
XML | 3 | 0 | 0 | 47 |
Python | 1 | 4 | 0 | 19 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 9.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 89.00 |
Average method complexity | 2.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 29 | |
Interfaces | 35 | |
Traits | 8 | |
Classes | 190 | |
▷ Abstract classes | 5 | 2.63% |
▷ Concrete classes | 185 | 97.37% |
▷ Final classes | 11 | 5.95% |
Methods | 1,733 | |
▷ Static methods | 163 | 9.41% |
▷ Public methods | 1,514 | 87.36% |
▷ Protected methods | 19 | 1.10% |
▷ Private methods | 200 | 11.54% |
Functions | 288 | |
▷ Named functions | 67 | 23.26% |
▷ Anonymous functions | 221 | 76.74% |
Constants | 69 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 69 | 100.00% |
▷ Public constants | 69 | 100.00% |
Plugin size 0% from 2 tests
Image compression 0% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.64MB with 0.40MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-5.png | 27.39KB | 13.71KB | ▼ 49.96% |
assets/screenshot-4.png | 34.41KB | 18.05KB | ▼ 47.56% |
assets/screenshot-3.png | 60.64KB | 22.99KB | ▼ 62.08% |
assets/screenshot-2.png | 25.84KB | 12.87KB | ▼ 50.20% |
(invalid) assets/banner-1544x500.png | 334.80KB | 0.00KB | ▼ 100.00% |