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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.44ms] Passed 4 tests
Server-side resources used by Caldera Forms - Sprout Invoices Integration
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.40 ▼2.81 |
Dashboard /wp-admin | 3.31 ▼0.03 | 47.73 ▼16.37 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.94 ▲1.47 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 86.07 ▼10.90 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.30 ▲0.33 |
Server storage [IO: ▲0.11MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Caldera Forms - Sprout Invoices Integration: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.17 ▼0.19 | 1.64 ▼0.30 | 42.05 ▼0.51 |
Dashboard /wp-admin | 2,192 ▲12 | 5.54 ▼0.09 | 86.48 ▼11.81 | 39.22 ▼5.26 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.97 ▼0.04 | 34.32 ▼2.07 | 29.69 ▼8.65 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 22.90 ▼0.16 | 677.80 ▲18.04 | 53.15 ▼5.61 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.18 ▼0.15 | 110.39 ▼0.95 | 47.60 ▼0.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- 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
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 take a closer look at the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/caldera-forms-sprout-invoices-integration/config-client.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/caldera-forms-sprout-invoices-integration/config.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/caldera-forms-sprout-invoices-integration/meta.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/caldera-forms-sprout-invoices-integration/cf-sprout-invoice.php:15
- > PHP Fatal error
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)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: estimate form, form integration, invoice, sprout invoices
caldera-forms-sprout-invoices-integration/cf-sprout-invoice.php 92% from 13 tests
The primary PHP file in "Caldera Forms - Sprout Invoices Integration" version 1.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("caldera-forms-sprout-invoices-integration.php" instead of "cf-sprout-invoice.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin522 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 79 | 59 | 416 |
CSS | 1 | 19 | 6 | 106 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.09MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/sproutapps.png | 88.03KB | 20.75KB | ▼ 76.43% |