Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.23MB] [CPU: ▼3.70ms] Passed 4 tests
This is a short check of server-side resources used by Swipe for Gravity Forms
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.27 | 39.46 ▼3.84 |
Dashboard /wp-admin | 3.58 ▲0.23 | 51.10 ▼11.53 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 49.50 ▲4.59 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 94.42 ▼1.63 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 38.42 ▲2.19 |
Server storage [IO: ▲1.27MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 207 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Swipe for Gravity Forms
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲87 | 13.59 ▼0.76 | 1.62 ▼0.14 | 40.41 ▼1.36 |
Dashboard /wp-admin | 2,242 ▲54 | 5.83 ▲0.95 | 98.41 ▼4.97 | 66.81 ▲22.67 |
Posts /wp-admin/edit.php | 2,121 ▲32 | 2.00 ▲0.04 | 39.17 ▲3.96 | 36.48 ▼0.25 |
Add New Post /wp-admin/post-new.php | 1,556 ▲42 | 18.21 ▲0.72 | 666.97 ▼39.26 | 64.41 ▲8.47 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 4.22 ▲0.00 | 98.78 ▼3.66 | 79.71 ▲33.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 51× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/swipe-for-gravity-forms/admin/views/settings.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/swipe-for-gravity-forms/libraries/swipego/admin/views/dashboard.php:8
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/swipe-for-gravity-forms/libraries/swipego/vendor/guzzlehttp/guzzle/src/Exception/ClientException.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Client\\ClientExceptionInterface' not found in wp-content/plugins/swipe-for-gravity-forms/libraries/swipego/vendor/guzzlehttp/guzzle/src/Exception/GuzzleException.php:7
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/swipe-for-gravity-forms/libraries/swipego/vendor/guzzlehttp/promises/src/AggregateException.php:8
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/swipe-for-gravity-forms/libraries/swipego/vendor/guzzlehttp/guzzle/src/Exception/TooManyRedirectsException.php:5
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/swipe-for-gravity-forms/libraries/swipego/vendor/guzzlehttp/promises/src/Coroutine.php:45
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/swipe-for-gravity-forms/libraries/swipego/vendor/guzzlehttp/psr7/src/LazyOpenStream.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Client\\ClientExceptionInterface' not found in wp-content/plugins/swipe-for-gravity-forms/libraries/swipego/vendor/psr/http-client/src/RequestExceptionInterface.php:14
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/swipe-for-gravity-forms/libraries/swipego/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5, #6 in swipe-for-gravity-forms/assets to your readme.txt
swipe-for-gravity-forms/swipego-gf.php 92% from 13 tests
This is the main PHP file of "Swipe for Gravity Forms" version 1.0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("swipe-for-gravity-forms.php" instead of "swipego-gf.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected17,085 lines of code in 181 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 135 | 2,458 | 5,771 | 10,090 |
Markdown | 17 | 1,230 | 0 | 3,613 |
JavaScript | 5 | 568 | 164 | 2,197 |
JSON | 13 | 0 | 0 | 1,051 |
CSS | 4 | 0 | 0 | 73 |
SVG | 5 | 0 | 1 | 45 |
make | 1 | 4 | 0 | 9 |
YAML | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 13.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 2.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 26 | |
Traits | 3 | |
Classes | 87 | |
▷ Abstract classes | 1 | 1.15% |
▷ Concrete classes | 86 | 98.85% |
▷ Final classes | 34 | 39.53% |
Methods | 817 | |
▷ Static methods | 140 | 17.14% |
▷ Public methods | 686 | 83.97% |
▷ Protected methods | 10 | 1.22% |
▷ Private methods | 121 | 14.81% |
Functions | 134 | |
▷ Named functions | 44 | 32.84% |
▷ Anonymous functions | 90 | 67.16% |
Constants | 74 | |
▷ Global constants | 9 | 12.16% |
▷ Class constants | 65 | 87.84% |
▷ Public constants | 54 | 83.08% |
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
There were not PNG files found in your plugin