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.00MB] [CPU: ▼0.12ms] Passed 4 tests
Analyzing server-side resources used by Easy GA Google Analytics
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 41.13 ▼4.26 |
Dashboard /wp-admin | 3.31 ▲0.01 | 52.10 ▼0.09 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 52.92 ▲6.07 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 96.13 ▲2.32 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.39 ▲1.57 |
Easy Google Analytics /wp-admin/options-general.php?page=easy_ga_admin | 3.23 | 33.38 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Easy GA Google Analytics: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.72 ▲0.43 | 1.75 ▼0.30 | 48.49 ▲7.75 |
Dashboard /wp-admin | 2,199 ▲25 | 5.61 ▼0.04 | 84.91 ▼1.32 | 39.79 ▼7.48 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 1.98 ▼0.03 | 41.67 ▲4.76 | 36.13 ▼2.84 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 18.56 ▼4.31 | 647.49 ▼40.43 | 69.25 ▲12.37 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.16 ▼0.04 | 105.93 ▲2.75 | 45.16 ▼1.21 |
Easy Google Analytics /wp-admin/options-general.php?page=easy_ga_admin | 790 | 2.02 | 26.74 | 25.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/easy-ga-google-analytics/admin/easy_ga_admin.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: google, analytics, google analytics, ga
easy-ga-google-analytics/easy-ga-google-analytics.php Passed 13 tests
Analyzing the main PHP file in "Easy GA Google Analytics" version 1.1.0
125 characters long description:
Copy&Paste your Google Analytics code snippet and enables google analytics on all pages. Only Anonymous users have analytics.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected96 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 18 | 29 | 59 |
PO File | 1 | 3 | 3 | 23 |
Markdown | 1 | 9 | 0 | 14 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
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 | 5 | |
▷ Named functions | 5 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 15.95KB | 6.84KB | ▼ 57.10% |