Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.11ms] Passed 4 tests
Analyzing server-side resources used by Gateway Addon for Swish Payment for GiveWP
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.37 ▼11.37 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.72 ▼7.01 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.44 ▼0.63 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 97.09 ▼9.97 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.26 ▼4.10 |
Server storage [IO: ▲1.60MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 394 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Gateway Addon for Swish Payment for GiveWP
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 13.37 ▼1.37 | 1.69 ▼0.06 | 40.44 ▼5.82 |
Dashboard /wp-admin | 2,224 ▲24 | 4.87 ▼0.02 | 111.58 ▼6.99 | 40.29 ▼6.98 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 2.00 ▼0.04 | 40.15 ▲3.72 | 36.09 ▼1.34 |
Add New Post /wp-admin/post-new.php | 1,545 ▲3 | 23.10 ▲4.72 | 663.36 ▼12.39 | 52.12 ▼18.07 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.23 ▲0.02 | 95.10 ▼11.77 | 48.38 ▲5.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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/payment-gateway-for-swish-givewp/givewp-swish-addon.php
- 189× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/payment-gateway-for-swish-givewp/vendor/guzzlehttp/promises/src/FulfilledPromise.php:11
- > PHP Fatal error
Uncaught Error: Class 'Ramsey\\Uuid\\Codec\\StringCodec' not found in wp-content/plugins/payment-gateway-for-swish-givewp/vendor/ramsey/uuid/src/Codec/TimestampFirstCombCodec.php:51
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/payment-gateway-for-swish-givewp/vendor/guzzlehttp/psr7/src/BufferStream.php:17
- > PHP Parse error
syntax error, unexpected ',' in wp-content/plugins/payment-gateway-for-swish-givewp/vendor/ramsey/uuid/src/Rfc4122/VersionTrait.php on line 53
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/payment-gateway-for-swish-givewp/vendor/guzzlehttp/guzzle/src/Exception/ClientException.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Ramsey\\Uuid\\Exception\\UuidExceptionInterface' not found in wp-content/plugins/payment-gateway-for-swish-givewp/vendor/ramsey/uuid/src/Exception/NodeException.php:22
- > PHP Fatal error
Uncaught Error: Interface 'Ramsey\\Uuid\\Type\\TypeInterface' not found in wp-content/plugins/payment-gateway-for-swish-givewp/vendor/ramsey/uuid/src/Type/NumberInterface.php:22
- > PHP Fatal error
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0". You are running 7.4.16. in wp-content/plugins/payment-gateway-for-swish-givewp/vendor/composer/platform_check.php on line 24
- > PHP Parse error
syntax error, unexpected 'private' (T_PRIVATE), expecting variable (T_VARIABLE) in wp-content/plugins/payment-gateway-for-swish-givewp/vendor/ramsey/uuid/src/Builder/DegradedUuidBuilder.php on line 42
- > PHP Fatal error
Uncaught Error: Class 'Ramsey\\Uuid\\Converter\\Time\\BigNumberTimeConverter' not found in wp-content/plugins/payment-gateway-for-swish-givewp/vendor/ramsey/uuid/src/Converter/Time/DegradedTimeConverter.php:23
- > 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 93% 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
6 plugin tags: givewp, payment, swish, gateway, give...
payment-gateway-for-swish-givewp/givewp-swish-addon.php 85% from 13 tests
This is the main PHP file of "Gateway Addon for Swish Payment for GiveWP" version 1.0.1, 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: Please rename the main PHP file in this plugin to the plugin slug ("payment-gateway-for-swish-givewp.php" instead of "givewp-swish-addon.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
Good job! No executable or dangerous file extensions detected26,153 lines of code in 356 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 311 | 4,870 | 14,318 | 19,335 |
Markdown | 20 | 1,584 | 0 | 4,318 |
JSON | 15 | 0 | 0 | 1,706 |
CSS | 2 | 113 | 54 | 601 |
JavaScript | 3 | 9 | 40 | 118 |
YAML | 3 | 14 | 0 | 58 |
XML | 1 | 0 | 0 | 16 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 8.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 91.00 |
Average method complexity | 2.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 49 | |
Interfaces | 55 | |
Traits | 13 | |
Classes | 223 | |
▷ Abstract classes | 9 | 4.04% |
▷ Concrete classes | 214 | 95.96% |
▷ Final classes | 63 | 29.44% |
Methods | 1,656 | |
▷ Static methods | 246 | 14.86% |
▷ Public methods | 1,457 | 87.98% |
▷ Protected methods | 26 | 1.57% |
▷ Private methods | 173 | 10.45% |
Functions | 175 | |
▷ Named functions | 44 | 25.14% |
▷ Anonymous functions | 131 | 74.86% |
Constants | 161 | |
▷ Global constants | 5 | 3.11% |
▷ Class constants | 156 | 96.89% |
▷ Public constants | 129 | 82.69% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin