Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.19MB] [CPU: ▼137.32ms] Passed 4 tests
This is a short check of server-side resources used by GA-PVcounter
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.03 ▲0.20 | 37.57 ▼0.01 |
Dashboard /wp-admin | 3.25 ▲0.20 | 51.76 ▲1.35 |
Posts /wp-admin/edit.php | 3.36 ▲0.26 | 58.10 ▲16.96 |
Add New Post /wp-admin/post-new.php | 5.61 ▲0.18 | 109.68 ▼565.33 |
Media Library /wp-admin/upload.php | 3.19 ▲0.19 | 50.57 ▲14.70 |
GA-PVcounter /wp-admin/options-general.php?page=ga-pvcounter/GA-PVcounter.php | 2.21 | 11.16 |
Server storage [IO: ▲2.65MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 98 new files
Database: no new tables, 2 new options
New WordPress options |
---|
widget_ga_pvwidget |
widget_ga_pv_recent |
Browser metrics Passed 4 tests
A check of browser resources used by GA-PVcounter
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,837 ▲241 | 18.75 ▲3.09 | 22.89 ▲12.95 | 50.22 ▲0.90 |
Dashboard /wp-admin | 2,975 ▲41 | 6.09 ▼0.07 | 149.37 ▼17.62 | 112.72 ▲0.89 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▼0.00 | 72.72 ▼4.48 | 91.39 ▼3.40 |
Add New Post /wp-admin/post-new.php | 1,584 ▼99 | 16.68 ▼1.72 | 469.47 ▲59.94 | 141.72 ▲25.76 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.00 ▼0.04 | 194.09 ▲22.08 | 132.15 ▲10.80 |
GA-PVcounter /wp-admin/options-general.php?page=ga-pvcounter/GA-PVcounter.php | 1,290 | 2.06 | 68.62 | 88.89 |
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: 2 options
- widget_ga_pvwidget
- widget_ga_pv_recent
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=ga-pvcounter/GA-PVcounter.php
- > Deprecated in wp-content/plugins/ga-pvcounter/google-api-php-client/src/service/Google_Utils.php+58
Array and string offset access syntax with curly braces is deprecated
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 64× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Google_ServiceResource' not found in wp-content/plugins/ga-pvcounter/google-api-php-client/src/contrib/Google_SiteVerificationService.php:25
- > PHP Fatal error
Uncaught Error: Class 'Google_IO' not found in wp-content/plugins/ga-pvcounter/google-api-php-client/src/io/Google_HttpStreamIO.php:26
- > PHP Fatal error
Uncaught Error: Class 'Google_ServiceResource' not found in wp-content/plugins/ga-pvcounter/google-api-php-client/src/contrib/Google_PagespeedonlineService.php:25
- > PHP Fatal error
Uncaught Error: Class 'Google_ServiceResource' not found in wp-content/plugins/ga-pvcounter/google-api-php-client/src/contrib/Google_OrkutService.php:25
- > PHP Fatal error
Uncaught Error: Class 'Google_ServiceResource' not found in wp-content/plugins/ga-pvcounter/google-api-php-client/src/contrib/Google_DriveService.php:25
- > PHP Fatal error
Uncaught Error: Class 'Google_ServiceResource' not found in wp-content/plugins/ga-pvcounter/google-api-php-client/src/contrib/Google_TasksService.php:25
- > PHP Fatal error
Uncaught Error: Class 'Google_ServiceResource' not found in wp-content/plugins/ga-pvcounter/google-api-php-client/src/contrib/Google_GanService.php:25
- > PHP Fatal error
Uncaught Error: Class 'Google_Cache' not found in wp-content/plugins/ga-pvcounter/google-api-php-client/src/cache/Google_ApcCache.php:26
- > PHP Fatal error
Uncaught Error: Class 'Google_ServiceResource' not found in wp-content/plugins/ga-pvcounter/google-api-php-client/src/contrib/Google_CustomsearchService.php:25
- > PHP Fatal error
Uncaught Error: Class 'Google_ServiceResource' not found in wp-content/plugins/ga-pvcounter/google-api-php-client/src/contrib/Google_WebfontsService.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Setup screen for authentication required to get the Google Analytics data), #2 (Setting screen of options, and profile ID), #3 (Setting screen of GA-PVcounter widget), #4 (Display example of popular posts and page view chart tabbed), #5 (Display of only PV chart is also available), #6 (Show only popular posts using short code), #7 (Setting screen of Recent posts widget), #8 (Display example of recent posts and small pv chart)
ga-pvcounter/GA-PVcounter.php 85% from 13 tests
The entry point to "GA-PVcounter" version 0.4.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: Name the main plugin file the same as the plugin slug ("ga-pvcounter.php" instead of "GA-PVcounter.php")
Code Analysis Passed 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
Success! There were no dangerous files found in this plugin52,948 lines of code in 82 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 78 | 2,442 | 12,825 | 52,664 |
PO File | 1 | 49 | 50 | 158 |
CSS | 2 | 33 | 278 | 82 |
JavaScript | 1 | 7 | 4 | 44 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.05 |
Average class complexity | 1.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 107.00 |
Average method complexity | 1.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1,384 | |
▷ Abstract classes | 5 | 0.36% |
▷ Concrete classes | 1,379 | 99.64% |
▷ Final classes | 0 | 0.00% |
Methods | 11,346 | |
▷ Static methods | 19 | 0.17% |
▷ Public methods | 11,310 | 99.68% |
▷ Protected methods | 9 | 0.08% |
▷ Private methods | 27 | 0.24% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 20 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 20 | 100.00% |
▷ Public constants | 20 | 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
9 compressed PNG files occupy 0.13MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-7.png | 2.48KB | 2.46KB | ▼ 0.79% |
screenshot-5.png | 1.83KB | 1.81KB | ▼ 1.33% |
screenshot-8.png | 21.26KB | 20.88KB | ▼ 1.79% |
screenshot-2.png | 4.25KB | 4.00KB | ▼ 5.99% |
screenshot-1.png | 31.24KB | 30.32KB | ▼ 2.94% |