Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.59ms] Passed 4 tests
Server-side resources used by WP Forms + Sprout Invoices - Easy Invoice & Quote Submissions
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 42.57 ▼0.68 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.77 ▼4.03 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.24 ▲0.22 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.07 ▼9.86 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.49 ▲1.69 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WP Forms + Sprout Invoices - Easy Invoice & Quote Submissions
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.28 ▼0.25 | 1.78 ▼0.07 | 43.44 ▲1.90 |
Dashboard /wp-admin | 2,195 ▲18 | 5.61 ▲0.03 | 88.25 ▼6.85 | 39.08 ▼1.64 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 1.99 ▼0.04 | 34.45 ▼1.48 | 38.02 ▲1.22 |
Add New Post /wp-admin/post-new.php | 1,526 ▼20 | 23.59 ▲5.07 | 623.49 ▼42.10 | 52.99 ▼17.83 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.14 ▼0.08 | 96.06 ▼6.60 | 42.74 ▼1.85 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
Please fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'SI_Controller' not found in wp-content/plugins/sprout-invoices-wp-forms/inc/WPForms_Controller.php:3
- > PHP Fatal error
Uncaught Error: Class 'SI_WPForms_Controller' not found in wp-content/plugins/sprout-invoices-wp-forms/inc/SI_WPForms.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: Add an image for screenshot #1 (Settings overview)
sprout-invoices-wp-forms/sprout-invoices-wpforms-integration.php 69% from 13 tests
The primary PHP file in "WP Forms + Sprout Invoices - Easy Invoice & Quote Submissions" version 2.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("sprout-invoices-wp-forms.php" instead of "sprout-invoices-wpforms-integration.php")
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin475 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 67 | 89 | 369 |
PO File | 1 | 20 | 22 | 63 |
Bourne Shell | 1 | 19 | 11 | 43 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 38.50 |
▷ Minimum class complexity | 35.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 5.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.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 | 16 | |
▷ Static methods | 16 | 100.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 3 | 37.50% |
▷ Class constants | 5 | 62.50% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.19MB with 0.13MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 193.16KB | 55.01KB | ▼ 71.52% |