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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.32ms] Passed 4 tests
Server-side resources used by EngageBay Forms - Simple and Powerful Forms to Capture and Nurture Leads
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.04 ▼7.63 |
Dashboard /wp-admin | 3.32 ▲0.02 | 51.51 ▼2.42 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 50.74 ▼0.46 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 89.79 ▼6.75 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 35.07 ▲1.59 |
Server storage [IO: ▲1.20MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 211 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by EngageBay Forms - Simple and Powerful Forms to Capture and Nurture Leads
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,190 ▲444 | 14.85 ▲0.27 | 1.71 ▼0.20 | 31.07 ▼15.98 |
Dashboard /wp-admin | 2,581 ▲393 | 4.90 ▼0.98 | 107.84 ▼0.07 | 79.17 ▲40.84 |
Posts /wp-admin/edit.php | 2,103 ▲14 | 2.05 ▲0.06 | 37.21 ▼1.74 | 34.35 ▼4.71 |
Add New Post /wp-admin/post-new.php | 1,524 ▼10 | 17.49 ▼5.56 | 701.19 ▲22.00 | 55.39 ▲0.86 |
Media Library /wp-admin/upload.php | 1,396 ▲14 | 4.15 ▼0.02 | 101.11 ▼0.70 | 75.30 ▲29.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/engagebay-forms/index.php
- 58× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/engagebay-forms/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php:7
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/engagebay-forms/vendor/guzzlehttp/guzzle/src/Exception/InvalidArgumentException.php:5
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/engagebay-forms/vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php:11
- > PHP Fatal error
Uncaught Error: Class 'League\\OAuth2\\Client\\Grant\\AbstractGrant' not found in wp-content/plugins/engagebay-forms/vendor/league/oauth2-client/src/Grant/AuthorizationCode.php:22
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/engagebay-forms/vendor/guzzlehttp/psr7/src/FnStream.php:12
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Psr7\\Request' not found in wp-content/plugins/engagebay-forms/vendor/guzzlehttp/psr7/src/ServerRequest.php:25
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/engagebay-forms/vendor/guzzlehttp/psr7/src/CachingStream.php:10
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/engagebay-forms/vendor/guzzlehttp/promises/src/Coroutine.php:43
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\UriInterface' not found in wp-content/plugins/engagebay-forms/vendor/guzzlehttp/psr7/src/Uri.php:13
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/engagebay-forms/vendor/guzzlehttp/promises/src/EachPromise.php:8
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Tags: Too many tags (20 tag instead of maximum 10); only the first 5 tags are used in your directory listing
engagebay-forms/index.php 85% from 13 tests
The primary PHP file in "EngageBay Forms - Simple and Powerful Forms to Capture and Nurture Leads" version 1.9.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 181 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("engagebay-forms.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected20,323 lines of code in 187 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 133 | 2,363 | 6,418 | 14,188 |
Markdown | 18 | 1,295 | 0 | 3,775 |
JSON | 12 | 1 | 0 | 981 |
CSS | 2 | 40 | 5 | 650 |
SVG | 13 | 2 | 11 | 558 |
JavaScript | 5 | 23 | 3 | 130 |
XML | 1 | 0 | 0 | 19 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
Bourne Shell | 1 | 2 | 0 | 3 |
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.45 |
Average class complexity | 13.04 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 153.00 |
Average method complexity | 2.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 18 | |
Interfaces | 19 | |
Traits | 9 | |
Classes | 83 | |
▷ Abstract classes | 2 | 2.41% |
▷ Concrete classes | 81 | 97.59% |
▷ Final classes | 13 | 16.05% |
Methods | 827 | |
▷ Static methods | 127 | 15.36% |
▷ Public methods | 638 | 77.15% |
▷ Protected methods | 58 | 7.01% |
▷ Private methods | 131 | 15.84% |
Functions | 228 | |
▷ Named functions | 139 | 60.96% |
▷ Anonymous functions | 89 | 39.04% |
Constants | 105 | |
▷ Global constants | 44 | 41.90% |
▷ Class constants | 61 | 58.10% |
▷ Public constants | 61 | 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
8 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/engagebay.png | 13.12KB | 4.67KB | ▼ 64.38% |
images/icon_2.png | 1.67KB | 0.88KB | ▼ 47.05% |
images/edit.png | 0.42KB | 0.29KB | ▼ 31.24% |
images/preview-n.png | 2.21KB | 1.84KB | ▼ 17.02% |
images/refresh-icon.png | 4.46KB | 2.66KB | ▼ 40.53% |