Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.07ms] Passed 4 tests
An overview of server-side resources used by Universal Analytics
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.75 ▼2.45 |
Dashboard /wp-admin | 3.35 ▲0.05 | 44.32 ▼8.08 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 46.62 ▼1.38 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 85.03 ▼16.38 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.65 ▲5.88 |
Google Analytics /wp-admin/options-general.php?page=mdg_google_universal_analytics | 3.25 | 32.79 |
Server storage [IO: ▲0.75MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Universal Analytics: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲77 | 14.80 ▲0.42 | 1.74 ▼0.30 | 43.50 ▼4.57 |
Dashboard /wp-admin | 2,218 ▲30 | 4.87 ▼0.02 | 101.78 ▼4.40 | 39.97 ▼9.20 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.01 ▲0.00 | 39.90 ▲3.88 | 37.41 ▲1.24 |
Add New Post /wp-admin/post-new.php | 1,596 ▲65 | 22.82 ▼0.38 | 649.65 ▲44.86 | 45.60 ▼5.46 |
Media Library /wp-admin/upload.php | 1,403 ▲15 | 4.26 ▲0.05 | 97.80 ▼8.31 | 43.62 ▼0.68 |
Google Analytics /wp-admin/options-general.php?page=mdg_google_universal_analytics | 1,017 | 2.39 | 31.51 | 60.59 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
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
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 take a closer look at the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/universal-analytics/tracking-code.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/universal-analytics/universalanalytics.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/universal-analytics/options.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
universal-analytics/universalanalytics.php 92% from 13 tests
The principal PHP file in "Universal Analytics" v. 1.3.2 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("universal-analytics.php" instead of "universalanalytics.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin6,703 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 10 | 45 | 6,120 |
PHP | 3 | 33 | 22 | 262 |
SVG | 1 | 0 | 0 | 229 |
JavaScript | 3 | 17 | 27 | 78 |
Markdown | 1 | 7 | 0 | 14 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
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 | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 4.85KB | 1.76KB | ▼ 63.67% |
assets/icon-256x256.png | 10.14KB | 3.20KB | ▼ 68.43% |