Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼1.72MB] [CPU: ▼189.00ms] Passed 4 tests
A check of server-side resources used by Universal Analytics Injector
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.91 ▼0.93 | 6.16 ▼32.17 |
Dashboard /wp-admin | 1.93 ▼1.13 | 10.43 ▼27.52 |
Posts /wp-admin/edit.php | 1.93 ▼1.18 | 5.91 ▼33.97 |
Add New Post /wp-admin/post-new.php | 1.93 ▼3.51 | 6.29 ▼660.04 |
Media Library /wp-admin/upload.php | 1.93 ▼1.08 | 6.36 ▼29.83 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Universal Analytics Injector
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,816 ▲220 | 16.28 ▲0.41 | 12.19 ▲3.56 | 55.94 ▼1.51 |
Dashboard /wp-admin | 2,976 ▲42 | 5.99 ▼0.22 | 145.57 ▼12.80 | 118.74 ▲4.56 |
Posts /wp-admin/edit.php | 2,748 ▲9 | 2.83 ▲0.15 | 66.92 ▼3.55 | 91.99 ▼5.20 |
Add New Post /wp-admin/post-new.php | 1,505 ▼178 | 18.94 ▲0.24 | 390.23 ▲13.89 | 119.17 ▲5.46 |
Media Library /wp-admin/upload.php | 1,816 ▲9 | 5.04 ▲0.01 | 154.84 ▼2.39 | 125.25 ▼13.77 |
UA Injector /wp-admin/universal-analytics-injector.php | 26 | 0.90 | 0.27 | 10.35 |
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 cannot be uninstalled
- > User notice in wp-includes/functions.php+5663
wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/universal-analytics-injector/universal-analytics-injector.php:17
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/universal-analytics-injector.php
- > Network (severe)
wp-admin/universal-analytics-injector.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 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
These attributes need your attention:
- Donate link: Invalid URI found ("")
- Screenshots: Please add an image for screenshot #1 (Settings for the Universal Analytics Injector)
universal-analytics-injector/universal-analytics-injector.php Passed 13 tests
"Universal Analytics Injector" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
101 characters long description:
Universal Analytics Injector for WordPress will help you add Google Analytics to your WordPress blog.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected554 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 95 | 112 | 492 |
CSS | 1 | 14 | 3 | 54 |
JavaScript | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
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 | 16 | |
▷ Named functions | 16 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.08MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 78.05KB | 30.03KB | ▼ 61.53% |
images/external_link_icon.png | 0.14KB | 0.16KB | 0.00% |