Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼6.88ms] Passed 4 tests
Analyzing server-side resources used by Sofortueberweisung Gateway for Woocommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 39.96 ▼9.66 |
Dashboard /wp-admin | 3.40 ▲0.10 | 49.20 ▲3.51 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 44.46 ▼5.15 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 84.94 ▼14.64 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 37.45 ▲1.92 |
Server storage [IO: ▲1.21MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 59 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Sofortueberweisung Gateway for Woocommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.29 ▼1.27 | 5.78 ▲3.58 | 45.12 ▲3.05 |
Dashboard /wp-admin | 2,209 ▲21 | 5.85 ▲0.04 | 100.97 ▼1.44 | 37.62 ▼7.66 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▲0.03 | 33.42 ▼6.91 | 36.47 ▲1.15 |
Add New Post /wp-admin/post-new.php | 1,533 ▼1 | 23.15 ▲0.02 | 660.70 ▲13.15 | 55.80 ▼0.84 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.21 ▼0.04 | 98.47 ▼8.93 | 42.36 ▼9.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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% 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 0% 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
Almost there! Just fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/woo-sofortuberweisung-gateway/sofort/examples/example.transaction.php
- > /wp-content/plugins/woo-sofortuberweisung-gateway/sofort/examples/example.sofortueberweisung.php
- 46× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/woo-sofortuberweisung-gateway/sofort/examples/example.transaction.php on line 73
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/woo-sofortuberweisung-gateway/sofort/examples/example.transaction.php on line 73
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/woo-sofortuberweisung-gateway/sofort/examples/example.transaction.php on line 73
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/woo-sofortuberweisung-gateway/sofort/examples/example.transaction.php on line 73
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/woo-sofortuberweisung-gateway/sofort/examples/example.transaction.php on line 73
- > PHP Fatal error
Uncaught Error: Class 'SofortLibTest' not found in wp-content/plugins/woo-sofortuberweisung-gateway/sofort/unittests/xmlToArrayTest.php:4
- > PHP Fatal error
Uncaught Error: Class 'SofortElement' not found in wp-content/plugins/woo-sofortuberweisung-gateway/sofort/core/lib/elements/sofortText.php:22
- > PHP Fatal error
Uncaught Error: Class 'SofortLibTest' not found in wp-content/plugins/woo-sofortuberweisung-gateway/sofort/unittests/xmlToArrayNodeTest.php:4
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/woo-sofortuberweisung-gateway/sofort/unittests/fileLoggerTest.php:4
- > PHP Fatal error
Cannot use 'Object' as class name as it is reserved in wp-content/plugins/woo-sofortuberweisung-gateway/sofort/unittests/SofortObject.php on line 3
- > PHP Warning
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 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Requires at least: Version format is invalid
woo-sofortuberweisung-gateway/woo-sofortuberweisung-gateway.php Passed 13 tests
The main PHP file in "Sofortueberweisung Gateway for Woocommerce" ver. 1.3.4 adds more information about the plugin and also serves as the entry point for this plugin
72 characters long description:
Sofortueberweisung / Klarna Gateway for WooCommerce, easy, fast and safe
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
No dangerous file extensions were detected8,008 lines of code in 50 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 40 | 1,400 | 2,177 | 6,535 |
PO File | 6 | 414 | 516 | 1,422 |
XML | 1 | 0 | 0 | 25 |
SVG | 1 | 0 | 0 | 14 |
JSON | 1 | 0 | 0 | 8 |
Markdown | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 8.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 72.00 |
Average method complexity | 1.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 41 | |
▷ Abstract classes | 6 | 14.63% |
▷ Concrete classes | 35 | 85.37% |
▷ Final classes | 0 | 0.00% |
Methods | 416 | |
▷ Static methods | 7 | 1.68% |
▷ Public methods | 378 | 90.87% |
▷ Protected methods | 16 | 3.85% |
▷ Private methods | 22 | 5.29% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
core/sofort-logo.png | 10.71KB | 5.49KB | ▼ 48.79% |