Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼295.82ms] Passed 4 tests
An overview of server-side resources used by Gravity Forms: Google Analytics Addon
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.10 | 60.51 ▼3.94 |
Dashboard /wp-admin | 3.51 ▲0.10 | 39.00 ▼5.07 |
Posts /wp-admin/edit.php | 3.74 ▲0.09 | 42.18 ▼2.90 |
Add New Post /wp-admin/post-new.php | 6.98 ▲0.00 | 98.68 ▼1,171.36 |
Media Library /wp-admin/upload.php | 3.39 ▲0.09 | 29.34 ▲2.38 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Gravity Forms: Google Analytics Addon
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,767 ▲23 | 16.22 ▲0.16 | 6.58 ▼1.36 | 2.14 ▲0.00 |
Dashboard /wp-admin | 2,895 ▲34 | 6.15 ▼0.08 | 117.37 ▼25.32 | 157.61 ▼8.07 |
Posts /wp-admin/edit.php | 2,691 ▼0 | 3.23 ▼0.01 | 73.72 ▲5.31 | 156.65 ▲9.82 |
Add New Post /wp-admin/post-new.php | 1,711 ▲50 | 21.08 ▲5.15 | 471.08 ▲35.79 | 159.68 ▲0.47 |
Media Library /wp-admin/upload.php | 1,695 ▼3 | 5.57 ▲0.03 | 142.28 ▼7.08 | 183.87 ▼6.37 |
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
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/gravity-forms-google-analytics-addon/gravityforms-ga.php:13
- > 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
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== gravity-forms-google-analytics-addon ===
)
gravity-forms-google-analytics-addon/gravityforms-ga.php 85% from 13 tests
"Gravity Forms: Google Analytics Addon" version 0.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("gravity-forms-google-analytics-addon.php" instead of "gravityforms-ga.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 335 characters long)
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
Good job! No executable or dangerous file extensions detected547 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 116 | 203 | 479 |
CSS | 1 | 17 | 3 | 66 |
XML | 2 | 0 | 0 | 2 |
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.37 |
Average class complexity | 41.50 |
▷ Minimum class complexity | 38.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 36 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin