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.00MB] [CPU: ▼2.37ms] Passed 4 tests
Server-side resources used by Drip Payments
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.10 ▼6.24 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.78 ▼4.14 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.76 ▲4.03 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.13 ▲0.56 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.43 ▲0.36 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Drip Payments
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.74 ▲0.36 | 1.59 ▼0.13 | 39.66 ▼4.30 |
Dashboard /wp-admin | 2,209 ▲17 | 4.84 ▼0.10 | 107.17 ▼15.14 | 42.48 ▼3.95 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▲0.03 | 40.54 ▲5.60 | 36.14 ▲1.20 |
Add New Post /wp-admin/post-new.php | 1,538 ▲17 | 23.28 ▼0.06 | 591.70 ▼98.62 | 62.10 ▲7.23 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.20 ▼0.06 | 93.68 ▼13.52 | 41.13 ▼1.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 62× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/drip-payments/vendor/psr/http-message/src/ResponseInterface.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\UploadedFileInterface' not found in wp-content/plugins/drip-payments/vendor/guzzlehttp/psr7/src/UploadedFile.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/drip-payments/src/DripExternalConfirmationEndpoint.php:3
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/drip-payments/vendor/guzzlehttp/promises/src/RejectedPromise.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/drip-payments/vendor/guzzlehttp/psr7/src/Stream.php:12
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/drip-payments/vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php:11
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/drip-payments/vendor/guzzlehttp/promises/src/Promise.php:10
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/drip-payments/vendor/guzzlehttp/promises/src/EachPromise.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/drip-payments/src/DripSingleProductBannerAndModal.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/drip-payments/src/DripUpdateAdminOptions.php:69
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: bnpl, woocommerce, drip payments, drip, payments
drip-payments/drip-payments.php Passed 13 tests
The main PHP script in "Drip Payments" version 2.2.0 is automatically included on every request by WordPress
70 characters long description:
Forneça a Drip como opção de pagamento para pedidos do WooCommerce.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin33,559 lines of code in 189 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 151 | 2,522 | 6,268 | 28,463 |
Markdown | 14 | 1,134 | 0 | 3,429 |
JSON | 12 | 0 | 0 | 1,216 |
HTML | 3 | 53 | 4 | 319 |
YAML | 5 | 22 | 3 | 91 |
XML | 1 | 0 | 0 | 19 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 16.37 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 3.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 16 | |
Traits | 2 | |
Classes | 96 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 96 | 100.00% |
▷ Final classes | 24 | 25.00% |
Methods | 783 | |
▷ Static methods | 165 | 21.07% |
▷ Public methods | 638 | 81.48% |
▷ Protected methods | 4 | 0.51% |
▷ Private methods | 141 | 18.01% |
Functions | 178 | |
▷ Named functions | 76 | 42.70% |
▷ Anonymous functions | 102 | 57.30% |
Constants | 171 | |
▷ Global constants | 42 | 24.56% |
▷ Class constants | 129 | 75.44% |
▷ Public constants | 129 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin