Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/growth-hacking-analytics-by-qunb/tools/src/Google/Utils.php+67
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.78MB] [CPU: ▼52.15ms] Passed 4 tests
A check of server-side resources used by Growth Hacking Analytics by qunb.com
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.21 ▼1.25 | 7.08 ▼36.92 |
Dashboard /wp-admin | 2.23 ▼1.07 | 8.17 ▼48.98 |
Posts /wp-admin/edit.php | 2.23 ▼1.12 | 10.36 ▼38.26 |
Add New Post /wp-admin/post-new.php | 2.23 ▼3.66 | 7.80 ▼84.42 |
Media Library /wp-admin/upload.php | 2.23 ▼1.00 | 8.68 ▼25.49 |
Server storage [IO: ▲4.18MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 168 new files
Database: no new tables, 21 new options
New WordPress options |
---|
qunb_twitter_followers |
qunb_ga_web_property |
db_upgraded |
qunb_facebook_url |
qunb_ga_token |
can_compress_scripts |
qunb_ghost_avg |
qunb_ga_account |
qunb_twitter_screen_name |
qunb_ga_refresh_token |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Growth Hacking Analytics by qunb.com
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲100 | 13.18 ▼1.07 | 1.93 ▼0.35 | 36.87 ▼12.93 |
Dashboard /wp-admin | 2,214 ▲23 | 4.85 ▼1.02 | 111.05 ▼8.57 | 43.70 ▲0.97 |
Posts /wp-admin/edit.php | 2,097 ▲11 | 2.00 ▲0.01 | 40.04 ▲3.84 | 35.99 ▼2.27 |
Add New Post /wp-admin/post-new.php | 1,548 ▲25 | 18.51 ▼4.80 | 698.04 ▲38.16 | 53.90 ▼8.48 |
Media Library /wp-admin/upload.php | 1,399 ▲8 | 4.18 ▼0.02 | 95.26 ▼8.45 | 40.25 ▼2.67 |
Growth Hacking Analytics /wp-admin/Growth_hacking_analytics.php | 26 | 0.44 | 0.10 | 13.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/growth-hacking-analytics-by-qunb/tools/src/Google/Utils.php+67
Array and string offset access syntax with curly braces is deprecated
- Zombie WordPress options were found after uninstall: 21 options
- qunb_ghost_avg_cumul
- qunb_ga_web_property
- qunb_ga_profile_timezone
- widget_recent-posts
- qunb_ga_token
- can_compress_scripts
- qunb_facebook_url
- qunb_gp_emails
- qunb_ga_profile_label
- qunb_facebook_likes
- ...
Smoke tests 25% 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 0% 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 items
- 8× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/growth-hacking-analytics-by-qunb/views/last_post.php
- > /wp-content/plugins/growth-hacking-analytics-by-qunb/views/dashboard.php
- > /wp-content/plugins/growth-hacking-analytics-by-qunb/views/top_posts.php
- > /wp-content/plugins/growth-hacking-analytics-by-qunb/views/header.php
- > /wp-content/plugins/growth-hacking-analytics-by-qunb/views/top_sources.php
- > /wp-content/plugins/growth-hacking-analytics-by-qunb/views/change_mode.php
- > /wp-content/plugins/growth-hacking-analytics-by-qunb/views/footer.php
- > /wp-content/plugins/growth-hacking-analytics-by-qunb/views/growth_comparison.php
- 146× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'Google/Http/Request.php' (include_path='.:/usr/share/php') in wp-content/plugins/growth-hacking-analytics-by-qunb/tools/src/Google/Http/CacheParser.php on line 18
- > PHP Warning
Use of undefined constant GROWTH_HACKING_ANALYTICS_URL - assumed 'GROWTH_HACKING_ANALYTICS_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/growth-hacking-analytics-by-qunb/views/last_post.php on line 28
- > PHP Fatal error
require_once(): Failed opening required 'Google/Utils.php' (include_path='.:/usr/share/php') in wp-content/plugins/growth-hacking-analytics-by-qunb/tools/src/Google/Http/Request.php on line 18
- > PHP Fatal error
Uncaught Error: Class 'Google_Service_qunb_analytics_v0_1_0' not found in wp-content/plugins/growth-hacking-analytics-by-qunb/tools/src/Google/Service/Pagespeedonline.php:32
- > PHP Fatal error
Uncaught Error: Class 'Google_Service_qunb_analytics_v0_1_0' not found in wp-content/plugins/growth-hacking-analytics-by-qunb/tools/src/Google/Service/Genomics.php:32
- > PHP Fatal error
Uncaught Error: Class 'Google_Service_qunb_analytics_v0_1_0' not found in wp-content/plugins/growth-hacking-analytics-by-qunb/tools/src/Google/Service/Bigquery.php:32
- > PHP Fatal error
require_once(): Failed opening required 'Google/Cache/Abstract.php' (include_path='.:/usr/share/php') in wp-content/plugins/growth-hacking-analytics-by-qunb/tools/src/Google/Cache/Memcache.php on line 18
- > PHP Fatal error
require_once(): Failed opening required 'Google/Client.php' (include_path='.:/usr/share/php') in wp-content/plugins/growth-hacking-analytics-by-qunb/tools/src/Google/Http/MediaFileUpload.php on line 18
- > PHP Warning
require_once(Google/Client.php): failed to open stream: No such file or directory in wp-content/plugins/growth-hacking-analytics-by-qunb/tools/src/Google/Http/MediaFileUpload.php on line 18
- > PHP Warning
require_once(Google/Auth/OAuth2.php): failed to open stream: No such file or directory in wp-content/plugins/growth-hacking-analytics-by-qunb/tools/src/Google/Auth/AssertionCredentials.php on line 18
- > 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 browser errors
- > GET request to /wp-admin/Growth_hacking_analytics.php
- > Network (severe)
wp-admin/Growth_hacking_analytics.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
10 plugin tags: dashboard, tweets, google analytics, growth hacking, statistics...
growth-hacking-analytics-by-qunb/Growth_hacking_analytics.php 92% from 13 tests
The main PHP file in "Growth Hacking Analytics by qunb.com" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("growth-hacking-analytics-by-qunb.php" instead of "Growth_hacking_analytics.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin109,191 lines of code in 144 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 121 | 18,367 | 22,531 | 109,161 |
JavaScript | 15 | 0 | 0 | 22 |
CSS | 8 | 0 | 0 | 8 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
The following items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 120)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.04 |
Average class complexity | 1.35 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 154.00 |
Average method complexity | 1.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 120.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1,956 | |
▷ Abstract classes | 5 | 0.26% |
▷ Concrete classes | 1,951 | 99.74% |
▷ Final classes | 0 | 0.00% |
Methods | 15,848 | |
▷ Static methods | 12 | 0.08% |
▷ Public methods | 15,808 | 99.75% |
▷ Protected methods | 11 | 0.07% |
▷ Private methods | 29 | 0.18% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 174 | |
▷ Global constants | 5 | 2.87% |
▷ Class constants | 169 | 97.13% |
▷ Public constants | 169 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
22 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/top-social-reddit-ico.png | 3.68KB | 2.16KB | ▼ 41.31% |
images/post-details-twitter-ico.png | 1.56KB | 0.83KB | ▼ 46.59% |
images/top-social-disqus-ico.png | 2.56KB | 1.35KB | ▼ 47.26% |
images/qunb-logo.png | 4.42KB | 1.90KB | ▼ 57.06% |
images/growth-ico.png | 2.60KB | 1.56KB | ▼ 39.94% |