Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼4.35ms] Passed 4 tests
An overview of server-side resources used by WeeConnectPay - Clover Payment Gateway
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.14 ▼2.09 |
Dashboard /wp-admin | 3.31 ▼0.04 | 45.51 ▼14.19 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.32 ▲0.62 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.14 ▼0.77 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 31.45 ▼0.34 |
Server storage [IO: ▲6.82MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 482 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WeeConnectPay - Clover Payment Gateway
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.67 ▲0.43 | 1.73 ▲0.16 | 35.65 ▼2.90 |
Dashboard /wp-admin | 2,192 ▲18 | 5.56 ▼0.16 | 91.76 ▼4.85 | 42.36 ▼1.51 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▲0.05 | 39.29 ▼0.73 | 36.48 ▼1.61 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.41 ▲0.28 | 589.67 ▼43.15 | 45.83 ▼11.61 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.16 ▼0.00 | 92.85 ▼7.22 | 42.12 ▲0.54 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/weeconnectpay/site/partials/weeconnectpayPublicDisplay.php
- 175× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'League\\Flysystem\\Plugin\\AbstractPlugin' not found in wp-content/plugins/weeconnectpay/vendor/league/flysystem/src/Plugin/ForcedRename.php:8
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/weeconnectpay/vendor/coenjacobs/mozart/tests/replacers/NamespaceReplacerTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Finder\\Iterator\\MultiplePcreFilterIterator' not found in wp-content/plugins/weeconnectpay/vendor/symfony/finder/Iterator/FilecontentFilterIterator.php:20
- > PHP Fatal error
Uncaught Error: Class 'WeeConnectPay\\Api\\ApiClient' not found in wp-content/plugins/weeconnectpay/includes/modules/WeeConnectPay/Api/Requests/CreateCloverCustomerRequest.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function WeeConnectPay\\Integrations\\plugin_dir_path() in wp-content/plugins/weeconnectpay/includes/modules/WeeConnectPay/Integration/IntegrationSettings.php:10
- > PHP Fatal error
Uncaught Error: Class 'League\\Flysystem\\Handler' not found in wp-content/plugins/weeconnectpay/vendor/league/flysystem/src/File.php:8
- > PHP Fatal error
Uncaught Error: Class 'WeeConnectPay\\Dependencies\\GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/weeconnectpay/packages/GuzzleHttp/Promise/AggregateException.php:8
- > PHP Fatal error
Uncaught Error: Interface 'WeeConnectPay\\Dependencies\\GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/weeconnectpay/packages/GuzzleHttp/Promise/Coroutine.php:45
- > PHP Fatal error
Uncaught Error: Class 'WeeConnectPay\\Dependencies\\GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/weeconnectpay/packages/GuzzleHttp/Cookie/SessionCookieJar.php:7
- > PHP Fatal error
Uncaught Error: Interface 'WeeConnectPay\\Dependencies\\GuzzleHttp\\ClientInterface' not found in wp-content/plugins/weeconnectpay/packages/GuzzleHttp/Client.php:26
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% 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 to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== WeeConnectPay - Clover Payment Gateway ===
) - Contributors: The plugin contributors field is not present
weeconnectpay/weeconnectpay.php Passed 13 tests
Analyzing the main PHP file in "WeeConnectPay - Clover Payment Gateway" version 3.6.0
61 characters long description:
Integrate Clover Payments with your WooCommerce online store.
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
These items require your attention
- Do not include executable or dangerous files in your plugin
- .exe - Executable in Windows
- ☣ wp-content/plugins/weeconnectpay/vendor/symfony/console/Resources/bin/hiddeninput.exe
- .exe - Executable in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 38,108 | 15 | 133,401 |
PHP | 392 | 7,256 | 17,088 | 48,258 |
JSON | 15 | 0 | 0 | 1,937 |
JavaScript | 6 | 60 | 159 | 706 |
Markdown | 16 | 143 | 0 | 405 |
PO File | 1 | 106 | 154 | 385 |
SVG | 8 | 0 | 0 | 43 |
YAML | 2 | 3 | 1 | 43 |
XML | 2 | 0 | 1 | 22 |
HTML | 2 | 0 | 1 | 17 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
These items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 12.59 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 183.00 |
Average method complexity | 2.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 61 | |
Interfaces | 43 | |
Traits | 13 | |
Classes | 293 | |
▷ Abstract classes | 15 | 5.12% |
▷ Concrete classes | 278 | 94.88% |
▷ Final classes | 33 | 11.87% |
Methods | 2,330 | |
▷ Static methods | 340 | 14.59% |
▷ Public methods | 1,903 | 81.67% |
▷ Protected methods | 123 | 5.28% |
▷ Private methods | 304 | 13.05% |
Functions | 326 | |
▷ Named functions | 162 | 49.69% |
▷ Anonymous functions | 164 | 50.31% |
Constants | 321 | |
▷ Global constants | 85 | 26.48% |
▷ Class constants | 236 | 73.52% |
▷ Public constants | 229 | 97.03% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
site/img/card-logos.png | 13.30KB | 5.05KB | ▼ 62.05% |
site/img/secured-by-logos.png | 7.37KB | 3.79KB | ▼ 48.61% |
admin/img/logo.png | 33.58KB | 20.10KB | ▼ 40.15% |