Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼4.91ms] Passed 4 tests
An overview of server-side resources used by Importer for Gravity Forms and NationBuilder
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 36.28 ▼7.71 |
Dashboard /wp-admin | 3.39 ▲0.09 | 44.81 ▼8.09 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 48.81 ▲0.01 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 89.30 ▼3.85 |
Media Library /wp-admin/upload.php | 3.31 ▲0.09 | 33.95 ▲1.97 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Importer for Gravity Forms and NationBuilder
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.46 ▼0.91 | 1.79 ▼0.12 | 40.09 ▼5.17 |
Dashboard /wp-admin | 2,197 ▲12 | 5.84 ▲0.94 | 93.15 ▼21.78 | 38.58 ▼9.16 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▼0.01 | 36.64 ▼1.59 | 32.49 ▼3.51 |
Add New Post /wp-admin/post-new.php | 1,537 ▲3 | 23.37 ▲0.18 | 619.35 ▼64.66 | 54.96 ▲5.36 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.28 ▲0.09 | 93.37 ▼8.03 | 42.22 ▼2.13 |
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
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/importer-for-gravity-forms-and-nationbuilder/gf-nb-importer.php:291
- > PHP Fatal error
Uncaught Error: Interface 'OAuth2\\GrantType\\IGrantType' not found in wp-content/plugins/importer-for-gravity-forms-and-nationbuilder/includes/vendor/OAuth2/GrantType/AuthorizationCode.php:9
- > PHP Fatal error
Uncaught Error: Interface 'OAuth2\\GrantType\\IGrantType' not found in wp-content/plugins/importer-for-gravity-forms-and-nationbuilder/includes/vendor/OAuth2/GrantType/ClientCredentials.php:7
- > PHP Fatal error
Uncaught Error: Interface 'OAuth2\\GrantType\\IGrantType' not found in wp-content/plugins/importer-for-gravity-forms-and-nationbuilder/includes/vendor/OAuth2/GrantType/RefreshToken.php:9
- > PHP Fatal error
Uncaught Error: Interface 'OAuth2\\GrantType\\IGrantType' not found in wp-content/plugins/importer-for-gravity-forms-and-nationbuilder/includes/vendor/OAuth2/GrantType/Password.php:9
- > PHP Fatal error
Uncaught Error: Class 'GFFeedAddOn' not found in wp-content/plugins/importer-for-gravity-forms-and-nationbuilder/includes/class-gravity-forms-feed.php:8
- > PHP Fatal error
Uncaught Error: Class 'GFAddOn' not found in wp-content/plugins/importer-for-gravity-forms-and-nationbuilder/includes/class-gravity-forms-main.php:8
- > 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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: nationbuilder, gravity forms
importer-for-gravity-forms-and-nationbuilder/gf-nb-importer.php 85% from 13 tests
The main PHP file in "Importer for Gravity Forms and NationBuilder" ver. 0.3.6 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("importer-for-gravity-forms-and-nationbuilder.php" instead of "gf-nb-importer.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin834 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 160 | 591 | 826 |
CSS | 1 | 1 | 0 | 8 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 8.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 2.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 51 | |
▷ Static methods | 6 | 11.76% |
▷ Public methods | 42 | 82.35% |
▷ Protected methods | 6 | 11.76% |
▷ Private methods | 3 | 5.88% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 33 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 33 | 100.00% |
▷ Public constants | 33 | 100.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 files were detected