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
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼12.92ms] Passed 4 tests
Analyzing server-side resources used by Tracking Pixel for Gravity Forms
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 45.28 ▲3.98 |
Dashboard /wp-admin | 3.31 ▼0.04 | 49.79 ▼16.59 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.29 ▼8.76 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.26 ▼23.17 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.24 ▼3.16 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Tracking Pixel for Gravity Forms
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲68 | 14.10 ▼0.18 | 2.42 ▲0.70 | 43.13 ▲1.83 |
Dashboard /wp-admin | 2,195 ▲18 | 5.62 ▼0.02 | 92.12 ▼1.01 | 42.01 ▼0.43 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.98 ▼0.01 | 37.28 ▼4.84 | 34.57 ▲0.26 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.07 ▲0.05 | 698.14 ▲20.82 | 55.39 ▼10.95 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.25 ▼0.00 | 100.99 ▼10.79 | 47.13 ▼0.66 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
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
Everything seems fine, however this is by no means 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
The following issues need your attention
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'GFForms' not found in wp-content/plugins/gf-facebook-pixel-tracking/includes/GFFBPT_Submission_Feeds.php:12
- > PHP Fatal error
Uncaught Error: Class 'GFForms' not found in wp-content/plugins/gf-facebook-pixel-tracking/includes/GFFBPT_FBP.php:2
- > 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
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: event tracking, facebook, facebook pixel, gravity forms
gf-facebook-pixel-tracking/gf-facebook-pixel-tracking.php Passed 13 tests
Analyzing the main PHP file in "Tracking Pixel for Gravity Forms" version 1.0.4
120 characters long description:
This plugin provides an easy way to add Facebook event tracking to your Gravity Forms using Facebook’s Tracking Pixel.
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
No dangerous file extensions were detected765 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 162 | 402 | 603 |
PO File | 1 | 32 | 43 | 98 |
Bourne Shell | 1 | 21 | 9 | 64 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 13.40 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 9 | 18.75% |
▷ Public methods | 35 | 72.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 27.08% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
5 PNG files occupy 0.45MB with 0.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 66.27KB | 20.45KB | ▼ 69.15% |
assets/screenshot-2.png | 97.07KB | 29.04KB | ▼ 70.08% |
assets/screenshot-3.png | 60.80KB | 17.66KB | ▼ 70.95% |
assets/banner-772x250.png | 47.08KB | 34.19KB | ▼ 27.38% |
assets/icon-256x256.png | 191.91KB | 68.66KB | ▼ 64.22% |