Benchmarks
Plugin footprint 83% 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: ▲0.05MB] [CPU: ▼3.34ms] Passed 4 tests
A check of server-side resources used by Cognito Forms
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 35.06 ▼4.09 |
Dashboard /wp-admin | 3.35 ▲0.05 | 45.52 ▼0.59 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 47.03 ▲0.60 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 88.30 ▼9.26 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.27 ▲3.38 |
Server storage [IO: ▲1.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
cognito_public_key |
db_upgraded |
theysaidso_admin_options |
cognito_dev_environment |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Cognito Forms
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,792 ▲30 | 14.72 ▲0.35 | 1.48 ▼0.21 | 39.78 ▲2.70 |
Dashboard /wp-admin | 2,198 ▲23 | 5.62 ▼0.12 | 99.50 ▼10.47 | 41.54 ▼2.93 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.00 ▼0.01 | 38.91 ▲0.40 | 35.22 ▲1.80 |
Add New Post /wp-admin/post-new.php | 6,201 ▲4,671 | 19.14 ▼3.87 | 903.70 ▲258.41 | 60.61 ▲7.77 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.27 ▲0.15 | 98.24 ▼7.45 | 43.17 ▼2.39 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 8 options
- theysaidso_admin_options
- cognito_dev_environment
- can_compress_scripts
- cognito_public_key
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cognito-forms/api.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cognito-forms/api.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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
Attributes that require attention:
- Tags: Too many tags (24 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: These screenshots do not have images: #1 (With Cognito Forms's easy-to-use form builder, create responsive contact forms, order forms, registration forms and more in minutes.), #2 (Add a block to the post or page where you'd like to embed your form.), #3 (Select the Cognito Forms block.), #4 (Choose "Select Form".), #5 (Select the form you would like to embed.), #6 (Your form is now embedded on the post/page.), #7 (Preview or publish to see your form in action!)
cognito-forms/cognito-forms.php 92% from 13 tests
"Cognito Forms" version 2.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 148 characters long)
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
Success! There were no dangerous files found in this plugin237 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 47 | 92 | 199 |
JavaScript | 2 | 3 | 1 | 30 |
SVG | 1 | 1 | 0 | 7 |
CSS | 2 | 2 | 1 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 9.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 17 | |
▷ Static methods | 3 | 17.65% |
▷ Public methods | 12 | 70.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 29.41% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 0.65MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-7.png | 151.07KB | 60.34KB | ▼ 60.05% |
screenshot-5.png | 78.21KB | 29.95KB | ▼ 61.71% |
screenshot-4.png | 27.41KB | 21.39KB | ▼ 21.94% |
screenshot-2.png | 33.59KB | 26.28KB | ▼ 21.77% |
screenshot-1.png | 111.93KB | 35.92KB | ▼ 67.91% |