Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼297.70ms] Passed 4 tests
An overview of server-side resources used by GamiPress - Gravity Forms integration
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 54.70 ▲6.04 |
Dashboard /wp-admin | 3.41 ▲0.01 | 33.60 ▲0.79 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 37.36 ▲0.91 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 91.42 ▼1,190.98 |
Media Library /wp-admin/upload.php | 3.30 ▲0.01 | 22.07 ▼1.52 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by GamiPress - Gravity Forms integration
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,791 ▲37 | 15.93 ▲0.27 | 5.79 ▼0.07 | 2.10 ▼0.16 |
Dashboard /wp-admin | 2,920 ▲66 | 6.17 ▲0.02 | 116.95 ▼15.78 | 154.65 ▼5.99 |
Posts /wp-admin/edit.php | 2,719 ▲31 | 3.25 ▲0.00 | 61.31 ▲0.59 | 142.32 ▲5.33 |
Add New Post /wp-admin/post-new.php | 1,687 ▲26 | 17.86 ▲1.67 | 377.10 ▼3.49 | 149.69 ▼9.30 |
Media Library /wp-admin/upload.php | 1,726 ▲28 | 5.53 ▼0.01 | 135.87 ▲2.26 | 183.27 ▼3.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully
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 everything seems fine, this is not 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
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gamipress-gravity-forms-integration/gamipress-gravity-forms.php:225
- > 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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Tags: There are too many tags (16 tag instead of maximum 10)
gamipress-gravity-forms-integration/gamipress-gravity-forms.php 92% from 13 tests
Analyzing the main PHP file in "GamiPress - Gravity Forms integration" version 1.2.2
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gamipress-gravity-forms-integration.php" instead of "gamipress-gravity-forms.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin491 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 201 | 426 | 455 |
JavaScript | 2 | 12 | 4 | 36 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 9 | |
▷ Static methods | 1 | 11.11% |
▷ Public methods | 5 | 55.56% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 44.44% |
Functions | 24 | |
▷ Named functions | 24 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin