Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼300.69ms] Passed 4 tests
Analyzing server-side resources used by Advanced Google Universal Analytics
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.14 | 58.69 ▲6.65 |
Dashboard /wp-admin | 3.50 ▲0.09 | 33.12 ▼0.07 |
Posts /wp-admin/edit.php | 3.72 ▲0.08 | 38.24 ▲2.55 |
Add New Post /wp-admin/post-new.php | 6.96 ▼0.01 | 92.19 ▼1,205.81 |
Media Library /wp-admin/upload.php | 3.37 ▲0.08 | 25.62 ▲0.58 |
Advanced Google Universal Analytics /wp-admin/options-general.php?page=AI-AdvancedGoogleUniversalAnalytics | 3.34 | 25.95 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Advanced Google Universal Analytics
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,768 ▲10 | 15.79 ▲0.21 | 5.61 ▼1.19 | 2.25 ▼0.49 |
Dashboard /wp-admin | 2,897 ▲36 | 6.15 ▼0.06 | 133.59 ▲0.12 | 162.28 ▲0.59 |
Posts /wp-admin/edit.php | 2,690 ▲2 | 3.24 ▼0.13 | 62.27 ▲0.65 | 139.59 ▲1.85 |
Add New Post /wp-admin/post-new.php | 1,755 ▲44 | 20.98 ▲0.07 | 429.15 ▼41.27 | 156.50 ▼2.49 |
Media Library /wp-admin/upload.php | 1,703 ▲2 | 5.51 ▼0.01 | 137.93 ▼3.17 | 184.31 ▼3.94 |
Advanced Google Universal Analytics /wp-admin/options-general.php?page=AI-AdvancedGoogleUniversalAnalytics | 1,364 | 3.00 | 66.64 | 117.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully
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 | 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
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-google-universal-analytics/AdvancedGoogleUniversalAnalytics.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: wordpress universal analytics, no track role, google universal analytics, advanced google universal analytics, analytics two code tracking...
advanced-google-universal-analytics/AdvancedGoogleUniversalAnalytics.php 85% from 13 tests
Analyzing the main PHP file in "Advanced Google Universal Analytics" version 1.0.3
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("advanced-google-universal-analytics.php" instead of "AdvancedGoogleUniversalAnalytics.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 442 characters long)
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
Good job! No executable or dangerous file extensions detected509 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 16 | 19 | 427 |
PO File | 2 | 24 | 24 | 82 |
PHP code Passed 2 tests
An overview 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.50 |
Average class complexity | 48.00 |
▷ Minimum class complexity | 48.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 7.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 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 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin