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.06MB] [CPU: ▼0.98ms] Passed 4 tests
Server-side resources used by Simple Easy Google Analytics
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 37.22 ▼8.58 |
Dashboard /wp-admin | 3.36 ▲0.06 | 45.04 ▲1.55 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 50.17 ▲4.73 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 93.80 ▲1.75 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 32.92 ▲1.38 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Simple Easy Google Analytics: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,925 ▲190 | 13.62 ▼0.73 | 5.15 ▲3.10 | 41.93 ▲1.26 |
Dashboard /wp-admin | 2,222 ▲34 | 5.85 ▲0.96 | 110.04 ▲3.40 | 38.70 ▼4.56 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.01 ▲0.01 | 39.75 ▲5.07 | 38.62 ▲1.30 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.43 ▲5.28 | 579.81 ▼41.23 | 51.16 ▼4.23 |
Media Library /wp-admin/upload.php | 1,404 ▲19 | 4.20 ▲0.01 | 96.16 ▼1.56 | 41.93 ▼4.66 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/simple-easy-google-analytics/public/partials/simple-easy-google-analytics-public-display.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/simple-easy-google-analytics/admin/partials/simple-easy-google-analytics-admin-display.php:16
- > PHP Fatal error
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 Passed 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
2 plugin tags: analytics, google analytics
simple-easy-google-analytics/simple-easy-google-analytics.php Passed 13 tests
The main PHP script in "Simple Easy Google Analytics" version 1.0.0 is automatically included on every request by WordPress
128 characters long description:
Simple Easy Google Analytics plugin enables you to track your site using the latest Google Analytics tracking code or client ID.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin322 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 118 | 488 | 315 |
JavaScript | 2 | 4 | 27 | 7 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 1.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 2 | 7.69% |
▷ Public methods | 20 | 76.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 23.08% |
Functions | 3 | |
▷ Named functions | 3 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin