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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.33ms] Passed 4 tests
A check of server-side resources used by Universal Google Analytics (GA3 and GA4)
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.70 ▲0.09 |
Dashboard /wp-admin | 3.32 ▲0.01 | 52.22 ▼1.82 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.93 ▼2.60 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 85.40 ▼21.80 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.75 ▼3.09 |
Universal Google Analytics /wp-admin/options-general.php?page=universal-google-analytics-settings | 3.21 | 32.75 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Universal Google Analytics (GA3 and GA4): an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲67 | 13.38 ▼0.92 | 20.87 ▲18.61 | 43.79 ▼0.53 |
Dashboard /wp-admin | 2,210 ▲22 | 5.90 ▲0.02 | 112.98 ▲2.96 | 43.38 ▼0.52 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.00 | 37.66 ▼0.76 | 35.87 ▲2.81 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.13 ▼0.10 | 621.80 ▼23.77 | 60.10 ▲12.13 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.20 ▼0.09 | 99.29 ▼7.34 | 42.46 ▼1.75 |
Universal Google Analytics /wp-admin/options-general.php?page=universal-google-analytics-settings | 985 | 2.17 | 23.78 | 29.85 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 30 tag instead of maximum 10
- Screenshots: Add images for these screenshots: #1 (Plugin Settings 1 screenshot-1.png), #2 (Plugin Settings 2 screenshot-2.png)
universal-google-analytics/universal-google-analytics.php Passed 13 tests
The entry point to "Universal Google Analytics (GA3 and GA4)" version 1.4 is a PHP file that has certain tags in its header comment area
89 characters long description:
Adds your Google Analytics (GA3 or GA4) tracking code and ID to the footer of your theme.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin368 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 69 | 20 | 327 |
SVG | 1 | 0 | 1 | 41 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 compressed PNG files occupy 0.07MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 27.26KB | 25.72KB | ▼ 5.65% |
screenshot-1.png | 40.80KB | 38.61KB | ▼ 5.38% |