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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.12MB] [CPU: ▼2.82ms] Passed 4 tests
Server-side resources used by GA Google Analytics – Connect Google Analytics to WordPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 42.25 ▲0.90 |
Dashboard /wp-admin | 3.44 ▲0.09 | 58.44 ▼5.47 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 47.55 ▲2.17 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 87.94 ▼7.53 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 37.36 ▲0.82 |
Google Analytics /wp-admin/options-general.php?page=ga-google-analytics | 3.44 | 32.28 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for GA Google Analytics – Connect Google Analytics to WordPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.37 ▼0.36 | 1.68 ▼0.00 | 43.71 ▼1.72 |
Dashboard /wp-admin | 2,196 ▲18 | 5.56 ▼0.15 | 90.66 ▼23.28 | 37.78 ▼7.20 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.14 ▲0.09 | 35.27 ▲0.59 | 32.92 ▼4.21 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.75 ▲0.13 | 673.05 ▼26.45 | 52.51 ▲0.14 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.14 ▼0.01 | 91.94 ▼16.51 | 41.32 ▼8.03 |
Google Analytics /wp-admin/options-general.php?page=ga-google-analytics | 1,359 | 1.86 | 27.76 | 42.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test
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 96% from 29 tests
readme.txt Passed 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
7 plugin tags: google, tracking, analytics, statistics, google analytics...
ga-google-analytics/ga-google-analytics.php 92% from 13 tests
This is the main PHP file of "GA Google Analytics – Connect Google Analytics to WordPress" version 20231101..., providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "20231101...")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin874 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 458 | 54 | 806 |
CSS | 1 | 13 | 1 | 49 |
JavaScript | 1 | 10 | 1 | 19 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 77.00 |
▷ Minimum class complexity | 77.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 3.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.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 | 30 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 30 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/ga-icon-160x160.png | 11.98KB | 5.24KB | ▼ 56.27% |