Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.84ms] Passed 4 tests
Server-side resources used by Formidable Forms + Sprout Invoices - Easy Invoice & Estimate Submissions
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 43.31 ▼1.98 |
Dashboard /wp-admin | 3.31 ▲0.01 | 51.94 ▼3.98 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 54.11 ▼0.22 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 97.65 ▼1.18 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.58 ▲0.33 |
Server storage [IO: ▲1.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Formidable Forms + Sprout Invoices - Easy Invoice & Estimate Submissions: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.38 ▼0.00 | 1.79 ▼0.14 | 45.63 ▲1.71 |
Dashboard /wp-admin | 2,192 ▲15 | 5.56 ▼0.05 | 84.84 ▼12.46 | 40.40 ▼2.63 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.04 ▲0.03 | 39.55 ▲3.57 | 37.74 ▲3.03 |
Add New Post /wp-admin/post-new.php | 1,526 ▼1 | 23.11 ▲0.21 | 666.20 ▲25.90 | 50.35 ▼4.29 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.18 ▲0.08 | 103.87 ▲5.14 | 49.29 ▲3.36 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'SI_Controller' not found in wp-content/plugins/sprout-invoices-formidable-forms/inc/Formidable_Submission.php:3
- > PHP Fatal error
Uncaught Error: Class 'SI_Formidable_Controller' not found in wp-content/plugins/sprout-invoices-formidable-forms/trunk/inc/Formidable.php:3
- > PHP Fatal error
Uncaught Error: Class 'SI_Formidable_Controller' not found in wp-content/plugins/sprout-invoices-formidable-forms/inc/Formidable.php:3
- > PHP Fatal error
Uncaught Error: Class 'SI_Controller' not found in wp-content/plugins/sprout-invoices-formidable-forms/trunk/inc/Formidable_Submission.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 issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (Form with pre-defined line items), #2 (Settings overview)
sprout-invoices-formidable-forms/sprout-invoice-formidable-integration.php 69% from 13 tests
The main file in "Formidable Forms + Sprout Invoices - Easy Invoice & Estimate Submissions" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- 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-formidable-forms.php" instead of "sprout-invoice-formidable-integration.php")
- 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")
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 plugin877 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 137 | 171 | 771 |
PO File | 1 | 20 | 22 | 63 |
Bourne Shell | 1 | 19 | 11 | 43 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 36.00 |
▷ Minimum class complexity | 36.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 35 | 100.00% |
▷ Public methods | 35 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 4 | 28.57% |
▷ Class constants | 10 | 71.43% |
▷ Public constants | 10 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.98MB with 0.71MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 213.63KB | 57.39KB | ▼ 73.13% |
trunk/screenshot-1.png | 287.60KB | 83.27KB | ▼ 71.05% |
screenshot-1.png | 287.60KB | 83.27KB | ▼ 71.05% |
trunk/screenshot-2.png | 213.63KB | 57.39KB | ▼ 73.13% |