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.01MB] [CPU: ▼1.85ms] Passed 4 tests
Analyzing server-side resources used by Simple Google Analytics Tracking
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.01 | 38.67 ▼2.93 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.95 ▼4.22 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 45.86 ▲0.79 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 94.38 ▼0.69 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.12 ▲0.46 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Simple Google Analytics Tracking
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.20 ▼1.10 | 1.69 ▼0.18 | 41.60 ▼3.42 |
Dashboard /wp-admin | 2,213 ▲25 | 4.85 ▼0.06 | 96.42 ▼17.75 | 38.52 ▼8.99 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 2.02 ▲0.05 | 47.78 ▲6.17 | 38.71 ▲2.05 |
Add New Post /wp-admin/post-new.php | 1,536 ▼6 | 23.31 ▲4.96 | 650.89 ▲26.02 | 57.92 ▲5.41 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.12 ▼0.10 | 100.93 ▲1.77 | 44.01 ▼1.53 |
Google Analytics /wp-admin/simple-google-analytics-tracking.php | 26 | 0.44 | 0.12 | 14.21 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 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 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
Please fix the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-google-analytics-tracking/includes/simple-ga-tracking-input.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/simple-google-analytics-tracking/simple-google-analytics-tracking.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-google-analytics-tracking/includes/simple-ga-tracking-output.php:4
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/simple-google-analytics-tracking.php
- > Network (severe)
wp-admin/simple-google-analytics-tracking.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: google analytics, google, simple google analytics tracking, tracking, simple google analytics...
simple-google-analytics-tracking/simple-google-analytics-tracking.php Passed 13 tests
The entry point to "Simple Google Analytics Tracking" version 1.3 is a PHP file that has certain tags in its header comment area
72 characters long description:
Add Google Analytics Tracking to your site easily with your Tracking ID.
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
Everything looks great! No dangerous files found in this plugin100 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 36 | 43 | 100 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were 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 | 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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin