Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼8.23ms] Passed 4 tests
An overview of server-side resources used by Contact Form 7 Google Analytics
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 45.44 ▲5.23 |
Dashboard /wp-admin | 3.37 ▲0.03 | 46.72 ▼16.73 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 46.02 ▼1.57 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 83.61 ▼12.99 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.50 ▼1.61 |
CF7 to GA /wp-admin/options-general.php?page=cf7_ga | 3.26 | 31.47 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Contact Form 7 Google Analytics
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,880 ▲119 | 14.24 ▼0.16 | 1.73 ▲0.23 | 44.18 ▲6.41 |
Dashboard /wp-admin | 2,286 ▲106 | 5.52 ▼0.09 | 81.33 ▼8.51 | 44.75 ▲1.70 |
Posts /wp-admin/edit.php | 2,192 ▲92 | 2.15 ▲0.16 | 35.90 ▲1.15 | 35.91 ▼0.96 |
Add New Post /wp-admin/post-new.php | 1,596 ▲70 | 23.57 ▲0.54 | 642.61 ▲0.03 | 49.13 ▼3.95 |
Media Library /wp-admin/upload.php | 1,494 ▲97 | 4.22 ▲0.07 | 97.52 ▼4.59 | 52.75 ▲8.07 |
CF7 to GA /wp-admin/options-general.php?page=cf7_ga | 945 | 2.16 | 27.20 | 36.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% 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
Attributes that require attention:
- Tags: You are using too many tags: 16 tag instead of maximum 10
cf7-google-analytics/cf7-google-analytics.php Passed 13 tests
The main PHP script in "Contact Form 7 Google Analytics" version 1.8.10 is automatically included on every request by WordPress
65 characters long description:
Adds Google Analytics Event Tracking to all Contact Form 7 forms.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin324 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 55 | 183 | 258 |
JavaScript | 4 | 23 | 35 | 66 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 95.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.76% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected