Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.12MB] [CPU: ▼8.85ms] Passed 4 tests
Analyzing server-side resources used by Analytics Tracker
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 26.67 ▼16.23 |
Dashboard /wp-admin | 3.45 ▲0.15 | 60.20 ▲9.21 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 46.62 ▼4.77 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 82.07 ▼12.22 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 35.86 ▼2.19 |
Other Products /wp-admin/admin.php?page=analyticstracker-other-plugins | 3.34 | 31.47 |
Google Analytics /wp-admin/admin.php?page=analyticstracker-menu | 3.34 | 29.02 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Analytics Tracker
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲92 | 14.78 ▲0.19 | 1.81 ▼0.40 | 44.56 ▼4.55 |
Dashboard /wp-admin | 2,233 ▲42 | 4.84 ▼1.04 | 110.36 ▲5.88 | 40.42 ▼3.09 |
Posts /wp-admin/edit.php | 2,116 ▲24 | 1.99 ▼0.09 | 39.95 ▲0.60 | 33.90 ▲0.25 |
Add New Post /wp-admin/post-new.php | 1,563 ▲29 | 18.40 ▼4.80 | 624.99 ▼46.85 | 51.95 ▲1.41 |
Media Library /wp-admin/upload.php | 1,418 ▲33 | 4.26 ▲0.07 | 94.40 ▼20.51 | 41.03 ▼3.83 |
Other Products /wp-admin/admin.php?page=analyticstracker-other-plugins | 924 | 2.23 | 29.77 | 42.84 |
Google Analytics /wp-admin/admin.php?page=analyticstracker-menu | 940 | 2.03 | 22.65 | 28.06 |
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 does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/analytics-tracker/analytics-tracker.php
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)
No browser issues were 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
9 plugin tags: gtagjs, ua code, web stats, wordpress google analytics, tracking code...
analytics-tracker/analytics-tracker.php Passed 13 tests
"Analytics Tracker" version 2.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
88 characters long description:
Analytics Tracker makes it super easy to add Google Analytics tracking code on your site
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,829 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 108 | 222 | 654 |
Markdown | 4 | 153 | 0 | 614 |
JavaScript | 4 | 87 | 72 | 311 |
PO File | 1 | 53 | 110 | 125 |
JSON | 2 | 0 | 0 | 58 |
HTML | 1 | 6 | 0 | 50 |
CSS | 1 | 0 | 0 | 15 |
Bourne Shell | 1 | 0 | 0 | 2 |
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.65 |
Average class complexity | 82.00 |
▷ Minimum class complexity | 82.00 |
▷ Maximum class complexity | 82.00 |
Average method complexity | 5.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.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 | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
No PNG images were found in this plugin