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.35MB] [CPU: ▼12.64ms] Passed 4 tests
A check of server-side resources used by Easy Google Analytics
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 3.76 ▼35.14 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.40 ▼8.47 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.45 ▲1.02 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 80.75 ▼7.97 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.08 ▲2.88 |
Easy Google Analytics /wp-admin/options-general.php?page=easy-googleanalytics | 3.23 | 31.49 |
Server storage [IO: ▲0.04MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
ega_version |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
ega_tracking_id |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Easy Google Analytics: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.24 ▼0.39 | 1.53 ▼0.15 | 41.37 ▼2.80 |
Dashboard /wp-admin | 2,199 ▲19 | 5.55 ▼0.11 | 89.11 ▼0.67 | 36.62 ▼0.98 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.01 ▲0.06 | 39.85 ▲0.05 | 34.33 ▼3.85 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 22.99 ▼0.27 | 658.77 ▼18.79 | 52.85 ▼6.53 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.18 ▼0.02 | 93.66 ▼13.37 | 40.70 ▼6.50 |
Easy Google Analytics /wp-admin/options-general.php?page=easy-googleanalytics | 838 | 2.03 | 22.48 | 26.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 8 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- ega_tracking_id
- widget_recent-comments
- ega_version
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/easy-googleanalytics/options.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/easy-googleanalytics/googleanalytics.php:95
- > PHP Fatal error
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 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: googleanalytics, analytics, google, javascript
easy-googleanalytics/googleanalytics.php 85% from 13 tests
The main PHP script in "Easy Google Analytics" version 1.0.2 is automatically included on every request by WordPress
You should first fix the following items:
- Domain Path: The domain path folder does not exist ("/languages")
- Main file name: The principal plugin file should be the same as the plugin slug ("easy-googleanalytics.php" instead of "googleanalytics.php")
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
Good job! No executable or dangerous file extensions detected105 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 34 | 30 | 105 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
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 | 8 | |
▷ Named functions | 8 | 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
There are no PNG files in this plugin