Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.78MB] [CPU: ▲8.17ms] 75% from 4 tests
This is a short check of server-side resources used by Client Invoicing by Sprout Invoices - Easy Estimates and Invoices for WordPress
Please take the time to fix the following items
- CPU: The total CPU usage must kept under 500.00ms (currently 1,331.12ms on /wp-admin/admin.php?page=sprout-invoices-addons)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.96 ▲1.50 | 49.43 ▲8.51 |
Dashboard /wp-admin | 5.21 ▲1.91 | 71.96 ▲19.98 |
Posts /wp-admin/edit.php | 5.29 ▲1.93 | 62.43 ▲16.42 |
Add New Post /wp-admin/post-new.php | 7.65 ▲1.76 | 94.60 ▼12.22 |
Media Library /wp-admin/upload.php | 5.21 ▲1.98 | 59.51 ▲25.62 |
Tools /wp-admin/admin.php?page=sprout-invoices-import | 5.19 | 58.04 |
Estimates /wp-admin/edit.php?post_type=sa_estimate | 5.28 | 55.92 |
Add Estimate /wp-admin/post-new.php?post_type=sa_estimate | 5.31 | 79.99 |
Notifications /wp-admin/admin.php?page=sprout-invoices-notifications | 5.19 | 55.17 |
Add-ons /wp-admin/admin.php?page=sprout-invoices-addons | 6.10 | 1,331.12 |
Projects /wp-admin/edit.php?post_type=sa_project | 5.28 | 52.64 |
Payments /wp-admin/edit.php?post_type=sa_invoice&page=sprout-apps/invoice_payments | 5.19 | 50.66 |
Notifications /wp-admin/edit.php?post_type=sa_notification | 4.59 | 35.26 |
Payment Processors /wp-admin/admin.php?page=sprout-invoices-payments | 5.19 | 51.39 |
General Settings /wp-admin/admin.php?page=sprout-invoices-settings | 5.19 | 56.19 |
Server storage [IO: ▲19.21MB] [DB: ▲0.23MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 541 new files
Database: no new tables, 13 new options
New WordPress options |
---|
si_est_theme_template |
si_notifications |
widget_theysaidso_widget |
si_inv_theme_template |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
si_money_format |
si_current_version |
si_active_addons_v3 |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Client Invoicing by Sprout Invoices - Easy Estimates and Invoices for WordPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,226 ▲464 | 13.27 ▼1.14 | 1.69 ▼0.08 | 33.46 ▼10.56 |
Dashboard /wp-admin | 2,595 ▲418 | 4.95 ▼0.69 | 105.45 ▲2.59 | 51.61 ▲9.16 |
Posts /wp-admin/edit.php | 2,311 ▲211 | 2.37 ▲0.35 | 41.05 ▲3.22 | 36.69 ▲3.35 |
Add New Post /wp-admin/post-new.php | 1,671 ▲145 | 23.22 ▼0.17 | 709.73 ▲21.28 | 59.20 ▲4.38 |
Media Library /wp-admin/upload.php | 1,611 ▲211 | 4.40 ▲0.23 | 104.44 ▼1.85 | 47.10 ▲2.25 |
Tools /wp-admin/admin.php?page=sprout-invoices-import | 2,117 | 3.25 | 61.59 | 40.09 |
Estimates /wp-admin/edit.php?post_type=sa_estimate | 1,396 | 2.36 | 41.50 | 37.10 |
Add Estimate /wp-admin/post-new.php?post_type=sa_estimate | 5,654 | 8.45 | 202.91 | 83.96 |
Notifications /wp-admin/admin.php?page=sprout-invoices-notifications | 2,466 | 6.00 | 113.08 | 90.08 |
Add-ons /wp-admin/admin.php?page=sprout-invoices-addons | 5,099 | 3.87 | 84.78 | 51.44 |
Projects /wp-admin/edit.php?post_type=sa_project | 1,340 | 2.52 | 38.45 | 30.71 |
Payments /wp-admin/edit.php?post_type=sa_invoice&page=sprout-apps/invoice_payments | 1,239 | 2.14 | 30.38 | 29.16 |
Notifications /wp-admin/edit.php?post_type=sa_notification | 2,460 | 5.77 | 100.08 | 59.07 |
Payment Processors /wp-admin/admin.php?page=sprout-invoices-payments | 1,585 | 2.99 | 47.34 | 40.95 |
General Settings /wp-admin/admin.php?page=sprout-invoices-settings | 7,381 | 4.44 | 87.94 | 56.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.23MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 13 options in the database
- si_current_version
- si_inv_theme_template
- si_money_format
- widget_recent-posts
- si_import_progress
- si_est_theme_template
- db_upgraded
- theysaidso_admin_options
- si_notifications
- can_compress_scripts
- ...
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 14× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/sprout-invoices/views/notifications/admin-request-submitted.php
- > /wp-content/plugins/sprout-invoices/importers/lib/freshbooks/FreshBooksRequest.php
- > /wp-content/plugins/sprout-invoices/views/notifications/admin-estimate-accepted.php
- > /wp-content/plugins/sprout-invoices/views/notifications/payment-reminder.php
- > /wp-content/plugins/sprout-invoices/views/notifications/estimate.php
- > /wp-content/plugins/sprout-invoices/views/notifications/request-received.php
- > /wp-content/plugins/sprout-invoices/views/notifications/payment-final.php
- > /wp-content/plugins/sprout-invoices/importers/lib/freshbooks/XmlDomConstruct.php
- > /wp-content/plugins/sprout-invoices/views/templates/invoice/payment-options.php
- > /wp-content/plugins/sprout-invoices/views/notifications/admin-estimate-declined.php
- 267× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/sprout-invoices/views/templates/checkout/checks/form.php:2
- > PHP Notice
Undefined variable: processor_settings in wp-content/plugins/sprout-invoices/views/admin/payment-processors/cc-settings.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'SI_Estimates' not found in wp-content/plugins/sprout-invoices/controllers/estimates/Estimates_Edit.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/sprout-invoices/views/admin/dashboards/premium/requests-converted-chart.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/sprout-invoices/views/admin/reports/payments.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/sprout-invoices/views/templates/theme/default/attachments-info/thumbnails-pdf.php:3
- > PHP Fatal error
Uncaught Error: Class 'SI_Controller' not found in wp-content/plugins/sprout-invoices/controllers/fees/Fees.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/sprout-invoices/views/templates/theme/basic/invoice/invoice-pdf.php:16
- > PHP Notice
Undefined variable: post in wp-content/plugins/sprout-invoices/views/admin/meta-boxes/projects/submit.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/sprout-invoices/views/admin/options/form-integrations-cta.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (Invoice Template), #2 (Easy Invoice Management), #3 (Easy Invoice Management), #4 (A dashboard with charts and summaries answer the question "how am I doing?".), #5 (Dynamic reports allow for date filtering, sorting, search, and exporting.), #6 (Common management tasks are sped up by Sprout Invoices utilization of AJAX.), #7 (Easy Estimate Management)
- Tags: Please delete some tags, you are using 18 tag instead of maximum 10
sprout-invoices/sprout-invoices.php 77% from 13 tests
The main PHP file in "Client Invoicing by Sprout Invoices - Easy Estimates and Invoices for WordPress" ver. 20.5.5 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 169 characters long)
- Domain Path: The domain path must begin with a forward slash character ("/languages")
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin124,198 lines of code in 391 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 19 | 23,973 | 38,791 | 59,791 |
PHP | 267 | 6,275 | 12,063 | 35,013 |
JavaScript | 71 | 3,990 | 2,466 | 20,232 |
CSS | 12 | 1,335 | 395 | 7,993 |
Sass | 13 | 131 | 6 | 535 |
HTML | 2 | 44 | 1 | 503 |
Markdown | 3 | 42 | 0 | 70 |
SVG | 1 | 0 | 0 | 32 |
JSON | 3 | 0 | 0 | 29 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 33.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 207.00 |
Average method complexity | 3.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 61.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 99 | |
▷ Abstract classes | 7 | 7.07% |
▷ Concrete classes | 92 | 92.93% |
▷ Final classes | 0 | 0.00% |
Methods | 1,474 | |
▷ Static methods | 913 | 61.94% |
▷ Public methods | 1,398 | 94.84% |
▷ Protected methods | 38 | 2.58% |
▷ Private methods | 38 | 2.58% |
Functions | 243 | |
▷ Named functions | 237 | 97.53% |
▷ Anonymous functions | 6 | 2.47% |
Constants | 554 | |
▷ Global constants | 32 | 5.78% |
▷ Class constants | 522 | 94.22% |
▷ Public constants | 522 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
92 PNG files occupy 7.10MB with 3.73MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
bundles/default.png | 25.29KB | 8.44KB | ▼ 66.62% |
resources/admin/img/basic.png | 167.01KB | 58.83KB | ▼ 64.78% |
resources/front-end/img/diners.png | 3.57KB | 2.50KB | ▼ 30.06% |
resources/front-end/img/gift-card.png | 3.98KB | 2.44KB | ▼ 38.61% |
resources/admin/img/stripe.png | 95.64KB | 35.81KB | ▼ 62.56% |