Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼140.92ms] Passed 4 tests
An overview of server-side resources used by Analytics by BestWebSoft - Google Analytics Dashboard and Statistic Plugin for WordPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.04 | 42.87 ▲14.74 |
Dashboard /wp-admin | 3.11 ▲0.05 | 44.41 ▲0.88 |
Posts /wp-admin/edit.php | 3.22 ▲0.11 | 50.45 ▲8.54 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.03 | 91.19 ▼566.22 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 30.95 ▼6.87 |
Server storage [IO: ▲4.81MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 180 new files
Database: no new tables, 2 new options
New WordPress options |
---|
bstwbsftwppdtplgns_options |
gglnltcs_options |
Browser metrics Passed 4 tests
A check of browser resources used by Analytics by BestWebSoft - Google Analytics Dashboard and Statistic Plugin for WordPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,724 ▲128 | 16.13 ▲0.56 | 7.31 ▼0.49 | 44.06 ▼4.56 |
Dashboard /wp-admin | 3,012 ▲78 | 5.97 ▲0.06 | 139.06 ▼1.74 | 108.40 ▲1.51 |
Posts /wp-admin/edit.php | 2,784 ▲45 | 2.73 ▲0.05 | 65.37 ▼0.16 | 89.68 ▲6.86 |
Add New Post /wp-admin/post-new.php | 1,532 ▼140 | 18.49 ▼0.36 | 350.85 ▼16.34 | 103.75 ▼4.91 |
Media Library /wp-admin/upload.php | 1,855 ▲48 | 5.06 ▲0.07 | 160.29 ▲8.39 | 113.29 ▼9.59 |
BWS Panel /wp-admin/bws-google-analytics.php?page=gglnltcs-bws-panel | 26 | 0.90 | 0.12 | 9.51 |
Settings /wp-admin/bws-google-analytics.php | 26 | 0.90 | 0.04 | 10.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/bws-google-analytics/bws-google-analytics.php:632
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/bws-google-analytics/bws_menu/product_list.php:8
- > PHP Fatal error
Uncaught Error: Class 'Bws_Settings_Tabs' not found in wp-content/plugins/bws-google-analytics/includes/class-gglnltcs-settings.php:7
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/bws-google-analytics/google-api/Service/AnalyticsReporting.php:29
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/bws-google-analytics/google-api/Service/Analytics.php:29
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- > GET request to /wp-admin/bws-google-analytics.php?page=gglnltcs-bws-panel
- > Network (severe)
wp-admin/bws-google-analytics.php?page=gglnltcs-bws-panel - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/bws-google-analytics.php
- > Network (severe)
wp-admin/bws-google-analytics.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
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Analytics Settings page.), #2 (Google Analytics Authentication.), #3 (Line Chart mode in the plugin Statistic page.), #4 (Table Chart mode in the plugin Statistic page.)
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
bws-google-analytics/bws-google-analytics.php Passed 13 tests
"Analytics by BestWebSoft - Google Analytics Dashboard and Statistic Plugin for WordPress" version 1.7.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
69 characters long description:
Add Google Analytics code to WordPress website and track basic stats.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin34,208 lines of code in 88 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 58 | 1,741 | 4,432 | 18,488 |
PO File | 11 | 4,117 | 6,791 | 7,902 |
CSS | 11 | 213 | 327 | 7,006 |
JavaScript | 7 | 53 | 164 | 741 |
SVG | 1 | 0 | 0 | 71 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 5.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 224.00 |
Average method complexity | 1.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 76.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 205 | |
▷ Abstract classes | 6 | 2.93% |
▷ Concrete classes | 199 | 97.07% |
▷ Final classes | 0 | 0.00% |
Methods | 1,830 | |
▷ Static methods | 13 | 0.71% |
▷ Public methods | 1,764 | 96.39% |
▷ Protected methods | 20 | 1.09% |
▷ Private methods | 46 | 2.51% |
Functions | 70 | |
▷ Named functions | 70 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 56 | |
▷ Global constants | 2 | 3.57% |
▷ Class constants | 54 | 96.43% |
▷ Public constants | 54 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
73 PNG files occupy 2.40MB with 0.76MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
bws_menu/css/jquery-ui-styles/1.10.4/images/ui-icons_cd0a0a_256x240.png | 4.49KB | 4.20KB | ▼ 6.46% |
bws_menu/css/jquery-ui-styles/1.11.4/images/ui-icons_222222_256x240.png | 6.76KB | 4.17KB | ▼ 38.24% |
bws_menu/icons/plugins/bike-rental.png | 6.86KB | 2.68KB | ▼ 60.89% |
bws_menu/css/jquery-ui-styles/1.10.4/images/ui-bg_glass_95_fef1ec_1x400.png | 0.38KB | 0.17KB | ▼ 53.39% |
bws_menu/css/jquery-ui-styles/1.9.2/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |