Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼195.61ms] Passed 4 tests
A check of server-side resources used by Xstream Google Analytics for WordPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.01 | 34.51 ▼7.63 |
Dashboard /wp-admin | 3.07 ▲0.01 | 56.98 ▲4.09 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 47.64 ▼6.07 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 98.36 ▼772.05 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 45.29 ▲3.32 |
Xstream Analytics /wp-admin/options-general.php?page=xstream-ga | 2.98 | 32.20 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Xstream Google Analytics for WordPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,706 ▲110 | 15.55 ▼0.01 | 14.29 ▲4.52 | 49.71 ▼5.60 |
Dashboard /wp-admin | 2,978 ▲44 | 5.88 ▼0.02 | 138.85 ▼44.28 | 125.80 ▼30.28 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.68 ▼0.02 | 74.99 ▼13.09 | 101.77 ▼40.58 |
Add New Post /wp-admin/post-new.php | 1,686 ▲71 | 18.71 ▼2.58 | 397.71 ▲20.29 | 140.67 ▲6.51 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.01 ▼0.02 | 171.69 ▼14.65 | 126.16 ▼23.49 |
Xstream Analytics /wp-admin/options-general.php?page=xstream-ga | 1,061 | 2.09 | 68.59 | 86.54 |
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
Uninstaller ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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:
- Screenshots: Please describe screenshot #1 in xstream-google-analytics/assets to your readme.txt
xstream-google-analytics/xstream-ga.php 92% from 13 tests
The entry point to "Xstream Google Analytics for WordPress" version 1.0.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("xstream-google-analytics.php" instead of "xstream-ga.php")
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 detected214 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 31 | 29 | 125 |
JavaScript | 1 | 3 | 8 | 89 |
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.25 |
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 | 7 | |
▷ Named functions | 7 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin