Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.40MB] [CPU: ▼0.78ms] Passed 4 tests
Analyzing server-side resources used by Beehive Analytics - Google Analytics Dashboard
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.35 | 42.50 ▼1.94 |
Dashboard /wp-admin | 3.83 ▲0.52 | 58.78 ▲6.29 |
Posts /wp-admin/edit.php | 3.73 ▲0.38 | 55.86 ▼7.09 |
Add New Post /wp-admin/post-new.php | 6.39 ▲0.50 | 93.58 ▲3.34 |
Media Library /wp-admin/upload.php | 3.60 ▲0.38 | 40.96 ▲2.58 |
Google Analytics /wp-admin/admin.php?page=beehive-google-analytics | 3.53 | 48.82 |
Accounts /wp-admin/admin.php?page=beehive-accounts | 3.69 | 37.98 |
Google Tag Manager /wp-admin/admin.php?page=beehive-google-tag-manager | 3.63 | 40.63 |
Tutorials /wp-admin/admin.php?page=beehive-tutorials | 3.52 | 36.58 |
Settings /wp-admin/admin.php?page=beehive-settings | 3.70 | 42.50 |
Dashboard /wp-admin/admin.php?page=beehive | 3.70 | 46.88 |
Server storage [IO: ▲13.17MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 1,272 new files
Database: no new tables, 9 new options
New WordPress options |
---|
beehive_owner_user |
beehive_version |
widget_recent-comments |
beehive_settings |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Beehive Analytics - Google Analytics Dashboard: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,357 ▲568 | 17.62 ▲2.83 | 2.60 ▲0.82 | 47.59 ▲3.61 |
Dashboard /wp-admin | 2,770 ▲567 | 8.56 ▲2.69 | 244.02 ▲134.95 | 92.26 ▲53.24 |
Posts /wp-admin/edit.php | 2,161 ▲69 | 2.05 ▲0.04 | 46.75 ▲9.26 | 40.32 ▲5.50 |
Add New Post /wp-admin/post-new.php | 1,567 ▲25 | 23.45 ▲5.16 | 763.09 ▲157.13 | 62.85 ▲14.59 |
Media Library /wp-admin/upload.php | 1,464 ▲73 | 4.18 ▼0.01 | 94.65 ▼33.53 | 41.79 ▼31.77 |
Google Analytics /wp-admin/admin.php?page=beehive-google-analytics | 1,592 | 6.14 | 172.92 | 73.72 |
Accounts /wp-admin/admin.php?page=beehive-accounts | 1,291 | 4.35 | 84.78 | 59.90 |
Google Tag Manager /wp-admin/admin.php?page=beehive-google-tag-manager | 1,120 | 3.74 | 65.43 | 46.26 |
Tutorials /wp-admin/admin.php?page=beehive-tutorials | 1,165 | 3.90 | 58.20 | 53.45 |
Settings /wp-admin/admin.php?page=beehive-settings | 1,474 | 4.38 | 100.52 | 64.11 |
Dashboard /wp-admin/admin.php?page=beehive | 1,980 | 5.99 | 120.76 | 80.59 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 690× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Beehive\\Google\\Collection' not found in wp-content/plugins/beehive-analytics/dependencies/vendor/google/apiclient-services/src/Analytics/Upload.php:20
- > PHP Fatal error
Uncaught Error: Class 'Beehive\\Google\\Model' not found in wp-content/plugins/beehive-analytics/dependencies/vendor/google/apiclient-services/src/Analytics/HashClientIdRequest.php:20
- > PHP Fatal error
Uncaught Error: Class 'Beehive\\Google\\Collection' not found in wp-content/plugins/beehive-analytics/dependencies/vendor/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaAccountSummary.php:20
- > PHP Fatal error
Uncaught Error: Class 'Beehive\\Google\\Collection' not found in wp-content/plugins/beehive-analytics/dependencies/vendor/google/apiclient-services/src/Analytics/AccountSummary.php:20
- > PHP Fatal error
Uncaught Error: Class 'Beehive\\Google\\Model' not found in wp-content/plugins/beehive-analytics/dependencies/vendor/google/apiclient-services/src/Analytics/EntityAdWordsLinkEntity.php:20
- > PHP Fatal error
Uncaught Error: Class 'Beehive\\Google\\Service\\Resource' not found in wp-content/plugins/beehive-analytics/dependencies/vendor/google/apiclient-services/src/Analytics/Resource/ManagementProfiles.php:30
- > PHP Fatal error
Uncaught Error: Class 'Beehive\\Google\\Collection' not found in wp-content/plugins/beehive-analytics/dependencies/vendor/google/apiclient-services/src/Analytics/Filters.php:20
- > PHP Fatal error
Uncaught Error: Class 'Beehive\\Google\\Collection' not found in wp-content/plugins/beehive-analytics/dependencies/vendor/google/apiclient-services/src/Analytics/GaData.php:20
- > PHP Fatal error
Uncaught Error: Class 'Beehive\\Google\\Model' not found in wp-content/plugins/beehive-analytics/dependencies/vendor/google/apiclient-services/src/AnalyticsData/Filter.php:20
- > PHP Fatal error
Uncaught Error: Class 'Beehive\\Google\\Model' not found in wp-content/plugins/beehive-analytics/dependencies/vendor/google/apiclient-services/src/PeopleService/Location.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: statistics, google analytics wordpress plugin, add google analytics to wordpress, website analytics, google analytics report...
beehive-analytics/beehive-analytics.php 92% from 13 tests
"Beehive Analytics - Google Analytics Dashboard" version 3.4.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis 97% from 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
Good job! No executable or dangerous file extensions detected90,100 lines of code in 1,193 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 936 | 4,351 | 65,758 | 72,345 |
Vuejs Component | 142 | 1,398 | 3,212 | 11,349 |
Sass | 54 | 461 | 89 | 3,200 |
JSON | 3 | 0 | 0 | 1,431 |
JavaScript | 43 | 178 | 815 | 1,219 |
SVG | 1 | 0 | 0 | 383 |
Markdown | 1 | 39 | 0 | 127 |
YAML | 1 | 2 | 0 | 25 |
CSS | 11 | 0 | 0 | 11 |
Dockerfile | 1 | 8 | 0 | 10 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
These items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 10.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 634.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 85 | |
Interfaces | 36 | |
Traits | 8 | |
Classes | 867 | |
▷ Abstract classes | 18 | 2.08% |
▷ Concrete classes | 849 | 97.92% |
▷ Final classes | 29 | 3.42% |
Methods | 6,884 | |
▷ Static methods | 343 | 4.98% |
▷ Public methods | 6,304 | 91.57% |
▷ Protected methods | 220 | 3.20% |
▷ Private methods | 360 | 5.23% |
Functions | 220 | |
▷ Named functions | 97 | 44.09% |
▷ Anonymous functions | 123 | 55.91% |
Constants | 515 | |
▷ Global constants | 82 | 15.92% |
▷ Class constants | 433 | 84.08% |
▷ Public constants | 433 | 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
67 PNG files occupy 1.92MB with 0.91MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
app/assets/img/beehive-summary.png | 139.04KB | 28.56KB | ▼ 79.46% |
core/external/free-notices/assets/images/giveaway/form/branda@2x.png | 6.85KB | 3.46KB | ▼ 49.49% |
app/src/images/icons/flags.png | 47.75KB | 13.06KB | ▼ 72.64% |
app/assets/img/onboarding/setup.png | 3.25KB | 2.39KB | ▼ 26.23% |
app/src/images/icons/icon-google-connect@2x.png | 0.98KB | 0.89KB | ▼ 9.37% |