Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.40ms] Passed 4 tests
Analyzing server-side resources used by Gravity Forms + Sprout Invoices - Easy Invoice & Estimate Submissions
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.01 | 37.51 ▼7.48 |
Dashboard /wp-admin | 3.35 ▼0.04 | 48.68 ▼15.81 |
Posts /wp-admin/edit.php | 3.40 ▲0.00 | 51.45 ▼5.98 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.00 | 97.43 ▲0.90 |
Media Library /wp-admin/upload.php | 3.27 ▲0.00 | 37.10 ▼0.32 |
Server storage [IO: ▲5.69MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Gravity Forms + Sprout Invoices - Easy Invoice & Estimate Submissions
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲79 | 14.24 ▼0.11 | 1.84 ▼0.14 | 42.56 ▼1.54 |
Dashboard /wp-admin | 2,195 ▲18 | 5.61 ▼0.05 | 89.84 ▼0.25 | 40.97 ▼4.22 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.95 ▼0.01 | 38.91 ▲0.84 | 38.73 ▲2.15 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 22.90 ▼0.06 | 657.66 ▼15.68 | 50.71 ▼9.23 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.20 ▼0.00 | 94.84 ▼21.78 | 45.29 ▼4.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'GFForms' not found in wp-content/plugins/sprout-invoices-gravity-forms/inc/SI_GF_Integration_Addon.php:3
- > 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 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Settings overview), #2 (Settings view), #3 (Form submission with redirect to newly created invoice)
sprout-invoices-gravity-forms/sprout-invoices-gravity-forms.php 77% from 13 tests
Analyzing the main PHP file in "Gravity Forms + Sprout Invoices - Easy Invoice & Estimate Submissions" version 1.3.5
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Domain Path: Please prefix the domain path 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
There were no executable files found in this plugin664 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 137 | 95 | 589 |
PO File | 1 | 20 | 22 | 63 |
JavaScript | 1 | 4 | 5 | 12 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 40.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 4.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 8 | 38.10% |
▷ Public methods | 15 | 71.43% |
▷ Protected methods | 5 | 23.81% |
▷ Private methods | 1 | 4.76% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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.32MB with 0.23MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 327.22KB | 91.42KB | ▼ 72.06% |