Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.47MB] [CPU: ▼2.19ms] Passed 4 tests
An overview of server-side resources used by Factuursturen integration
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.89 ▲0.43 | 46.07 ▲1.90 |
Dashboard /wp-admin | 3.79 ▲0.49 | 54.15 ▲2.42 |
Posts /wp-admin/edit.php | 3.84 ▲0.49 | 54.76 ▼9.60 |
Add New Post /wp-admin/post-new.php | 6.37 ▲0.49 | 98.25 ▼2.54 |
Media Library /wp-admin/upload.php | 3.72 ▲0.49 | 41.83 ▲1.50 |
Factuursturen API /wp-admin/options-general.php?page=fsi_settings_api | 3.75 | 39.39 |
Server storage [IO: ▲1.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 265 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Factuursturen integration
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 13.53 ▼1.10 | 4.68 ▲2.68 | 46.31 ▲2.69 |
Dashboard /wp-admin | 2,210 ▲31 | 4.84 ▼0.04 | 111.63 ▲4.96 | 42.04 ▼4.64 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 2.05 ▲0.04 | 40.09 ▲3.67 | 36.39 ▼2.79 |
Add New Post /wp-admin/post-new.php | 1,541 ▼2 | 22.88 ▲4.61 | 695.47 ▲90.22 | 52.27 ▼11.89 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.22 ▼0.11 | 95.50 ▼5.30 | 44.75 ▲0.46 |
Factuursturen API /wp-admin/options-general.php?page=fsi_settings_api | 922 | 2.17 | 22.57 | 34.47 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
The following issues need your attention
- 11× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/factuursturen-integration/factuursturen-integration.php
- > /wp-content/plugins/factuursturen-integration/vendor/analog/analog/examples/file.php
- > /wp-content/plugins/factuursturen-integration/vendor/analog/analog/examples/variable.php
- > /wp-content/plugins/factuursturen-integration/vendor/analog/analog/examples/threshold.php
- > /wp-content/plugins/factuursturen-integration/vendor/analog/analog/examples/multi.php
- > /wp-content/plugins/factuursturen-integration/vendor/analog/analog/examples/psr-0.php
- > /wp-content/plugins/factuursturen-integration/modules/PronamicInvoices/config.php
- > /wp-content/plugins/factuursturen-integration/modules/WoocommerceInvoices/config.php
- > /wp-content/plugins/factuursturen-integration/vendor/analog/analog/examples/levelbuffer.php
- > /wp-content/plugins/factuursturen-integration/vendor/analog/analog/examples/default.php
- 94× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'FSI\\RequestData\\ClientInterface' not found in wp-content/plugins/factuursturen-integration/src/RequestData/Client.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/factuursturen-integration/templates/admin/settings.php:2
- > PHP Fatal error
Trait 'FSI\\Module\\WoocommerceInvoices\\Util\\FactuursturenHelperTrait' not found in wp-content/plugins/factuursturen-integration/modules/WoocommerceInvoices/ActionHook/WoocommercePaymentComplete.php on line 12
- > PHP Fatal error
Uncaught Error: Class 'FSI\\Controller\\AbstractController' not found in wp-content/plugins/factuursturen-integration/src/Controller/Admin/SettingsController.php:7
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/factuursturen-integration/vendor/guzzlehttp/promises/src/FulfilledPromise.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\UploadedFileInterface' not found in wp-content/plugins/factuursturen-integration/vendor/guzzlehttp/psr7/src/UploadedFile.php:9
- > PHP Fatal error
Uncaught Error: Class 'MongoClient' not found in wp-content/plugins/factuursturen-integration/vendor/analog/analog/lib/Analog/Handler/Mongo.php:40
- > PHP Fatal error
Uncaught Error: Interface 'FSI\\RequestData\\InvoiceLineInterface' not found in wp-content/plugins/factuursturen-integration/src/RequestData/InvoiceLine.php:11
- > PHP Fatal error
Allowed memory size of 134217728 bytes exhausted (tried to allocate 8192 bytes) in wp-content/plugins/factuursturen-integration/vendor/analog/analog/examples/amon.php on line 16
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/factuursturen-integration/vendor/guzzlehttp/promises/src/EachPromise.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 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
5 plugin tags: woocommerce, factuursturen, ideal, api, pronamic
factuursturen-integration/factuursturen-integration.php Passed 13 tests
"Factuursturen integration" version 0.2.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
106 characters long description:
Sending invoices after payment through Factuursturen.nl service. Compatible with Woocommerce and Pronamic.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin16,729 lines of code in 246 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 217 | 2,813 | 8,280 | 12,399 |
Markdown | 14 | 1,064 | 0 | 3,561 |
JSON | 9 | 0 | 0 | 646 |
YAML | 2 | 8 | 0 | 70 |
XML | 3 | 5 | 2 | 44 |
make | 1 | 4 | 0 | 9 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 8.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 30 | |
Interfaces | 26 | |
Traits | 7 | |
Classes | 143 | |
▷ Abstract classes | 9 | 6.29% |
▷ Concrete classes | 134 | 93.71% |
▷ Final classes | 15 | 11.19% |
Methods | 1,108 | |
▷ Static methods | 156 | 14.08% |
▷ Public methods | 966 | 87.18% |
▷ Protected methods | 29 | 2.62% |
▷ Private methods | 113 | 10.20% |
Functions | 169 | |
▷ Named functions | 56 | 33.14% |
▷ Anonymous functions | 113 | 66.86% |
Constants | 96 | |
▷ Global constants | 8 | 8.33% |
▷ Class constants | 88 | 91.67% |
▷ Public constants | 88 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin