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.01MB] [CPU: ▼9.83ms] Passed 4 tests
Server-side resources used by WeGetFinancing Payment Gateway
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.20 ▼5.16 |
Dashboard /wp-admin | 3.31 ▼0.04 | 51.36 ▼17.64 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.65 ▼4.09 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.15 ▼12.44 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 39.62 ▲4.31 |
Server storage [IO: ▲9.79MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 1,760 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WeGetFinancing Payment Gateway
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 13.52 ▼1.24 | 2.02 ▲0.40 | 41.99 ▼3.88 |
Dashboard /wp-admin | 2,224 ▲21 | 4.84 ▼1.04 | 101.95 ▼8.93 | 40.19 ▼6.61 |
Posts /wp-admin/edit.php | 2,097 ▼0 | 1.99 ▲0.02 | 37.31 ▼0.51 | 34.15 ▲0.06 |
Add New Post /wp-admin/post-new.php | 1,545 ▲14 | 23.16 ▼0.00 | 697.74 ▲19.60 | 68.85 ▲4.14 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.20 ▼0.02 | 105.04 ▼6.09 | 41.43 ▼6.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 994× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\DependencyInjection\\Loader\\FileLoader' not found in wp-content/plugins/wegetfinancing-payment-gateway/vendor/symfony/dependency-injection/Loader/GlobFileLoader.php:19
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Validator\\Constraint' not found in wp-content/plugins/wegetfinancing-payment-gateway/vendor/symfony/validator/Constraints/Hostname.php:23
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/wegetfinancing-payment-gateway/vendor/twig/twig/src/Node/Expression/Binary/EndsWithBinary.php:16
- > PHP Fatal error
Uncaught Error: Class 'Sentry\\Tracing\\Span' not found in wp-content/plugins/wegetfinancing-payment-gateway/vendor/sentry/sentry/src/Tracing/Transaction.php:16
- > PHP Fatal error
Uncaught Error: Class 'PhpCsFixer\\Finder' not found in wp-content/plugins/wegetfinancing-payment-gateway/vendor/php-http/discovery/.php-cs-fixer.php:3
- > PHP Fatal error
Uncaught Error: Interface 'Twig\odeVisitor\odeVisitorInterface' not found in wp-content/plugins/wegetfinancing-payment-gateway/vendor/twig/twig/src/NodeVisitor/EscaperNodeVisitor.php:35
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\AbstractServiceConfigurator' not found in wp-content/plugins/wegetfinancing-payment-gateway/vendor/symfony/dependency-injection/Loader/Configurator/InstanceofConfigurator.php:19
- > PHP Fatal error
Uncaught LogicException: You cannot use "Http\\Message\\MessageFactory\\GuzzleStreamFactory" as the "php-http/message-factory" package is not installed. Try running "composer require php-http/message-factory". Note that this package is deprecated, use "psr/http-factory" instead in wp-content/plugins/wegetfinancing-payment-gateway/vendor/php-http/message/src/StreamFactory/GuzzleStreamFactory.php:9
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Config\\Definition\\BaseNode' not found in wp-content/plugins/wegetfinancing-payment-gateway/vendor/symfony/config/Definition/ArrayNode.php:23
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface' not found in wp-content/plugins/wegetfinancing-payment-gateway/vendor/symfony/dependency-injection/Compiler/ResolveDecoratorStackPass.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: wegetfinancing, checkout, payment
wegetfinancing-payment-gateway/wegetfinancing-checkout.php 85% from 13 tests
"WeGetFinancing Payment Gateway" version 1.3.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("5.9" instead of "5.0")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wegetfinancing-payment-gateway.php" instead of "wegetfinancing-checkout.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin133,412 lines of code in 1,656 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,435 | 22,940 | 42,814 | 95,372 |
XML | 65 | 24 | 5 | 22,567 |
Markdown | 76 | 3,329 | 0 | 8,122 |
JSON | 49 | 0 | 0 | 5,700 |
XSD | 3 | 62 | 1 | 557 |
Twig | 7 | 26 | 0 | 392 |
YAML | 8 | 29 | 3 | 322 |
reStructuredText | 5 | 229 | 345 | 260 |
Dockerfile | 2 | 16 | 3 | 54 |
SVG | 1 | 0 | 0 | 30 |
Bourne Shell | 1 | 6 | 0 | 18 |
make | 1 | 6 | 0 | 13 |
INI | 1 | 0 | 0 | 3 |
CSS | 1 | 0 | 5 | 1 |
JavaScript | 1 | 0 | 6 | 1 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
These items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 140)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 11.26 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 585.00 |
Average method complexity | 3.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 140.00 |
Code structure | ||
---|---|---|
Namespaces | 203 | |
Interfaces | 200 | |
Traits | 69 | |
Classes | 1,146 | |
▷ Abstract classes | 54 | 4.71% |
▷ Concrete classes | 1,092 | 95.29% |
▷ Final classes | 354 | 32.42% |
Methods | 6,420 | |
▷ Static methods | 608 | 9.47% |
▷ Public methods | 5,169 | 80.51% |
▷ Protected methods | 448 | 6.98% |
▷ Private methods | 803 | 12.51% |
Functions | 631 | |
▷ Named functions | 211 | 33.44% |
▷ Anonymous functions | 420 | 66.56% |
Constants | 996 | |
▷ Global constants | 11 | 1.10% |
▷ Class constants | 985 | 98.90% |
▷ Public constants | 863 | 87.61% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
21 PNG files occupy 2.24MB with 1.50MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/setup-11.png | 245.20KB | 64.59KB | ▼ 73.66% |
assets/setup-3.png | 185.43KB | 62.92KB | ▼ 66.07% |
assets/banner-772x250.png | 116.90KB | 40.71KB | ▼ 65.18% |
assets/setup-13.png | 21.31KB | 7.85KB | ▼ 63.15% |
assets/install-1.png | 40.99KB | 14.36KB | ▼ 64.97% |