Benchmarks
Plugin footprint Passed 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.01MB] [CPU: ▼138.14ms] Passed 4 tests
A check of server-side resources used by Instant Google Analytics
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 36.82 ▲17.31 |
Dashboard /wp-admin | 3.07 ▲0.02 | 46.51 ▼0.74 |
Posts /wp-admin/edit.php | 3.12 ▲0.02 | 46.03 ▲1.98 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 95.88 ▼554.07 |
Media Library /wp-admin/upload.php | 3.02 ▲0.01 | 42.72 ▲0.28 |
Inst. Google Analytics /wp-admin/options-general.php?page=tactics-analytics-settings | 2.98 | 29.28 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Instant Google Analytics
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,691 ▲95 | 16.07 ▲0.57 | 15.38 ▲6.94 | 54.01 ▲3.48 |
Dashboard /wp-admin | 2,975 ▲41 | 5.91 ▼0.09 | 144.80 ▼13.86 | 115.73 ▼13.82 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.69 ▲0.01 | 66.40 ▲1.50 | 96.22 ▲7.03 |
Add New Post /wp-admin/post-new.php | 1,584 ▼99 | 16.98 ▼1.49 | 417.02 ▲11.72 | 164.00 ▲48.38 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.02 ▼0.04 | 170.35 ▲16.09 | 142.12 ▲18.84 |
Inst. Google Analytics /wp-admin/options-general.php?page=tactics-analytics-settings | 1,101 | 2.10 | 62.05 | 75.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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 plugin_dir_url() in wp-content/plugins/instant-google-analytics/instant-google-analytics.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/instant-google-analytics/lib/controllers/tactics-iga-controller-class.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: tracking, universal tracking code, analytics install, google analytics
instant-google-analytics/instant-google-analytics.php Passed 13 tests
This is the main PHP file of "Instant Google Analytics" version 1.0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
75 characters long description:
Adds the Universal Google Analytics Tracking Code to Wordpress Theme Header
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
No dangerous file extensions were detected82 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 19 | 39 | 82 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 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 | 2 | |
▷ Global constants | 2 | 100.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
1 PNG file occupies 0.12MB with 0.08MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/ga-tracking-code-location.png | 121.72KB | 39.52KB | ▼ 67.53% |