Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/wsanalytics-google-analytics-and-dashboards/lib/Google/Utils.php+67
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼0.02MB] [CPU: ▼32.79ms] Passed 4 tests
A check of server-side resources used by WSAnalytics - Google Analytics And Dashboards
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.37 ▲0.91 | 39.59 ▲2.53 |
Dashboard /wp-admin | 3.92 ▲0.62 | 24.73 ▼22.77 |
Posts /wp-admin/edit.php | 3.93 ▲0.57 | 23.66 ▼24.55 |
Add New Post /wp-admin/post-new.php | 3.92 ▼1.96 | 23.75 ▼69.39 |
Media Library /wp-admin/upload.php | 3.92 ▲0.70 | 26.39 ▼14.44 |
Settings /wp-admin/admin.php?page=WSAnalytics-settings | 3.93 | 26.87 |
Dashboard /wp-admin/admin.php?page=WSAnalytics-dashboard | 3.93 | 28.45 |
Server storage [IO: ▲5.58MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 159 new files
Database: no new tables, 14 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
post_analytics_disable_back |
db_upgraded |
display_demographic_code |
WSAnalytics_posts_stats |
post_analytics_settings_back |
wsanalytics_code |
post_analytics_access_back |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WSAnalytics - Google Analytics And Dashboards
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,951 ▲205 | 13.84 ▼0.54 | 5.25 ▲3.44 | 36.38 ▼6.52 |
Dashboard /wp-admin | 2,268 ▲80 | 5.23 ▼0.62 | 114.16 ▼2.91 | 81.34 ▲35.45 |
Posts /wp-admin/edit.php | 2,149 ▲60 | 2.41 ▲0.42 | 38.13 ▲0.55 | 32.37 ▼0.88 |
Add New Post /wp-admin/post-new.php | 1,583 ▲64 | 20.85 ▼2.47 | 661.57 ▼12.23 | 39.42 ▼15.82 |
Media Library /wp-admin/upload.php | 1,439 ▲51 | 4.65 ▲0.48 | 110.11 ▲6.90 | 85.81 ▲42.26 |
Settings /wp-admin/admin.php?page=WSAnalytics-settings | 1,031 | 2.31 | 35.68 | 43.93 |
Dashboard /wp-admin/admin.php?page=WSAnalytics-dashboard | 840 | 2.17 | 28.97 | 26.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function add_menu_page was called incorrectly. The seventh parameter passed to add_menu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 6.0.0.)
- Zombie WordPress options were found after uninstall: 12 options
- post_analytics_access_back
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- display_demographic_code
- post_analytics_settings_back
- widget_recent-posts
- display_tracking_code
- wsanalytics_code
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=WSAnalytics-dashboard
- > User notice in wp-includes/functions.php+5905
Function add_menu_page was called incorrectly. The seventh parameter passed to add_menu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 6.0.0.)
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wsanalytics-google-analytics-and-dashboards/inc/front-menus.php
- > /wp-content/plugins/wsanalytics-google-analytics-and-dashboards/views/admin/referrers-stats.php
- 148× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
Use of undefined constant WSAnalytics_LIB_PATH - assumed 'WSAnalytics_LIB_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wsanalytics-google-analytics-and-dashboards/lib/Google/IO/Stream.php on line 24
- > PHP Fatal error
require_once(): Failed opening required 'WSAnalytics_LIB_PATHGoogle/Auth/Exception.php' (include_path='.:/usr/share/php') in wp-content/plugins/wsanalytics-google-analytics-and-dashboards/lib/Google/Verifier/Pem.php on line 18
- > PHP Warning
Use of undefined constant WSAnalytics_LIB_PATH - assumed 'WSAnalytics_LIB_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wsanalytics-google-analytics-and-dashboards/lib/Google/Cache/Null.php on line 18
- > PHP Warning
require_once(WSAnalytics_LIB_PATHGoogle/Exception.php): failed to open stream: No such file or directory in wp-content/plugins/wsanalytics-google-analytics-and-dashboards/lib/Google/Auth/Exception.php on line 18
- > PHP Fatal error
Uncaught Error: Class 'WSAnalytics_Google_Service' not found in wp-content/plugins/wsanalytics-google-analytics-and-dashboards/lib/Google/Service/Manager.php:32
- > PHP Fatal error
Uncaught Error: Class 'WSAnalytics_Google_Service' not found in wp-content/plugins/wsanalytics-google-analytics-and-dashboards/lib/Google/Service/SQLAdmin.php:32
- > PHP Fatal error
Uncaught Error: Class 'WSAnalytics_Google_Service' not found in wp-content/plugins/wsanalytics-google-analytics-and-dashboards/lib/Google/Service/Oauth2.php:32
- > PHP Warning
require_once(WSAnalytics_LIB_PATHGoogle/Cache/Abstract.php): failed to open stream: No such file or directory in wp-content/plugins/wsanalytics-google-analytics-and-dashboards/lib/Google/Cache/Memcache.php on line 18
- > PHP Warning
require_once(WSAnalytics_LIB_PATHGoogle/IO/Abstract.php): failed to open stream: No such file or directory in wp-content/plugins/wsanalytics-google-analytics-and-dashboards/lib/Google/IO/Curl.php on line 24
- > PHP Fatal error
require_once(): Failed opening required 'WSAnalytics_LIB_PATHGoogle/Cache/Abstract.php' (include_path='.:/usr/share/php') in wp-content/plugins/wsanalytics-google-analytics-and-dashboards/lib/Google/Cache/Apc.php on line 18
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
wsanalytics-google-analytics-and-dashboards/WSAnalytics.php 77% from 13 tests
The main file in "WSAnalytics - Google Analytics And Dashboards" v. 1.1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: The principal plugin file should be the same as the plugin slug ("wsanalytics-google-analytics-and-dashboards.php" instead of "WSAnalytics.php")
- Description: Keep the plugin description shorter than 140 characters (currently 239 characters long)
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
Success! There were no dangerous files found in this plugin125,346 lines of code in 131 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 119 | 20,603 | 25,314 | 122,161 |
CSS | 5 | 41 | 63 | 1,606 |
JavaScript | 7 | 190 | 133 | 1,579 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.02 |
Average class complexity | 1.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 73.00 |
Average method complexity | 1.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2,309 | |
▷ Abstract classes | 5 | 0.22% |
▷ Concrete classes | 2,304 | 99.78% |
▷ Final classes | 0 | 0.00% |
Methods | 17,940 | |
▷ Static methods | 18 | 0.10% |
▷ Public methods | 17,901 | 99.78% |
▷ Protected methods | 12 | 0.07% |
▷ Private methods | 27 | 0.15% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 196 | |
▷ Global constants | 11 | 5.61% |
▷ Class constants | 185 | 94.39% |
▷ Public constants | 185 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
22 PNG files occupy 0.70MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
images/arrow.png | 0.87KB | 0.43KB | ▼ 51.28% |
assets/screenshot-2.png | 117.10KB | 35.39KB | ▼ 69.78% |
css/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
css/images/ui-icons_888888_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |