Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼5.83ms] Passed 4 tests
An overview of server-side resources used by WP Google Analytics
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 42.53 ▼3.72 |
Dashboard /wp-admin | 3.41 ▲0.07 | 51.21 ▼13.54 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 49.91 ▼2.75 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 87.81 ▼3.30 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 37.03 ▲0.80 |
Google Analytics /wp-admin/options-general.php?page=wp-google-analytics | 3.30 | 36.82 |
Server storage [IO: ▲0.03MB] [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, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by WP Google Analytics
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲85 | 13.16 ▼1.22 | 2.09 ▲0.37 | 44.89 ▲5.74 |
Dashboard /wp-admin | 2,225 ▲22 | 5.82 ▼0.04 | 99.73 ▼9.66 | 37.31 ▼4.12 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▲0.00 | 34.28 ▼6.75 | 37.29 ▲2.21 |
Add New Post /wp-admin/post-new.php | 1,534 ▼11 | 23.23 ▲0.12 | 662.92 ▼32.68 | 69.24 ▲10.61 |
Media Library /wp-admin/upload.php | 1,404 ▲10 | 4.23 ▼0.19 | 97.57 ▼35.69 | 41.18 ▼13.10 |
Google Analytics /wp-admin/options-general.php?page=wp-google-analytics | 1,111 | 2.02 | 26.13 | 30.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-google-analytics/wp-google-analytics.php:53
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 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
3 plugin tags: google analytics, analytics, google
wp-google-analytics/wp-google-analytics.php Passed 13 tests
The main PHP file in "WP Google Analytics" ver. 1.4.1 adds more information about the plugin and also serves as the entry point for this plugin
69 characters long description:
Lets you use Google Analytics to track your WordPress site statistics
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected421 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 67 | 110 | 405 |
JavaScript | 1 | 3 | 10 | 16 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 84.00 |
▷ Minimum class complexity | 84.00 |
▷ Maximum class complexity | 84.00 |
Average method complexity | 5.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.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 | 20 | |
▷ Static methods | 1 | 5.00% |
▷ Public methods | 16 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 20.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
There are no PNG files in this plugin