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.07MB] [CPU: ▼9.03ms] Passed 4 tests
An overview of server-side resources used by Gravity Forms Janrain Add-on
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.08 | 38.29 ▼3.98 |
Dashboard /wp-admin | 3.42 ▲0.04 | 51.71 ▼10.96 |
Posts /wp-admin/edit.php | 3.54 ▲0.14 | 47.11 ▼5.72 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.08 | 89.38 ▼15.45 |
Media Library /wp-admin/upload.php | 3.35 ▲0.07 | 35.81 ▲0.37 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Gravity Forms Janrain Add-on
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.28 ▼0.45 | 1.92 ▲0.18 | 39.67 ▼0.41 |
Dashboard /wp-admin | 2,192 ▲18 | 5.62 ▼0.03 | 84.62 ▼9.93 | 39.75 ▼0.12 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▼0.00 | 37.02 ▼1.89 | 36.61 ▼0.77 |
Add New Post /wp-admin/post-new.php | 1,526 ▼3 | 23.52 ▲0.45 | 690.56 ▲61.04 | 54.71 ▲2.82 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.17 ▼0.10 | 96.55 ▼6.29 | 42.88 ▼5.38 |
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 did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gravity-forms-janrain-add-on/ajax-response.php:55
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/gravity-forms-janrain-add-on/gravity-forms-janrain-add-on.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gravity-forms-janrain-add-on/admin-settings.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: forms, social login, form prefill
gravity-forms-janrain-add-on/gravity-forms-janrain-add-on.php Passed 13 tests
"Gravity Forms Janrain Add-on" version 0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
75 characters long description:
Integrate Gravity Forms with Janrain Engage social login to pre-fill forms.
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
Everything looks great! No dangerous files found in this plugin454 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 132 | 205 | 434 |
JavaScript | 1 | 2 | 6 | 20 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin