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.25MB] [CPU: ▼3.27ms] Passed 4 tests
This is a short check of server-side resources used by Simple GA Ranking
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.22 | 42.73 ▼1.96 |
Dashboard /wp-admin | 3.60 ▲0.30 | 49.91 ▼5.66 |
Posts /wp-admin/edit.php | 3.65 ▲0.30 | 54.39 ▲5.61 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.24 | 91.91 ▼9.04 |
Media Library /wp-admin/upload.php | 3.46 ▲0.24 | 40.83 ▲3.57 |
Simple GA Ranking /wp-admin/options-general.php?page=sga_ranking | 3.43 | 35.23 |
Analytics設定 /wp-admin/options-general.php?page=gapiwp-analytics | 3.44 | 35.84 |
Server storage [IO: ▲7.40MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 248 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_simple_ga_rankig |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Simple GA Ranking
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 13.31 ▼0.95 | 1.78 ▼0.22 | 44.12 ▲1.19 |
Dashboard /wp-admin | 2,216 ▲28 | 5.79 ▼0.09 | 100.49 ▼10.60 | 48.39 ▲4.98 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.04 ▲0.05 | 35.19 ▼1.80 | 41.71 ▲6.28 |
Add New Post /wp-admin/post-new.php | 1,528 ▼0 | 17.65 ▼0.74 | 687.26 ▲43.77 | 57.39 ▲3.17 |
Media Library /wp-admin/upload.php | 1,404 ▲22 | 4.29 ▲0.06 | 99.53 ▼11.55 | 43.94 ▼1.20 |
Simple GA Ranking /wp-admin/options-general.php?page=sga_ranking | 809 | 2.06 | 26.49 | 33.77 |
Analytics設定 /wp-admin/options-general.php?page=gapiwp-analytics | 841 | 2.05 | 26.93 | 69.14 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_simple_ga_rankig
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 10× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/simple-ga-ranking/vendor/google/apiclient/examples/simplefileupload.php
- > /wp-content/plugins/simple-ga-ranking/vendor/google/apiclient/examples/multi-api.php
- > /wp-content/plugins/simple-ga-ranking/vendor/google/apiclient/examples/service-account.php
- > /wp-content/plugins/simple-ga-ranking/vendor/google/apiclient/examples/user-example.php
- > /wp-content/plugins/simple-ga-ranking/vendor/google/apiclient/examples/simple-query.php
- > /wp-content/plugins/simple-ga-ranking/vendor/google/apiclient/examples/idtoken.php
- > /wp-content/plugins/simple-ga-ranking/vendor/google/apiclient/examples/batch.php
- > /wp-content/plugins/simple-ga-ranking/vendor/google/apiclient/examples/fileupload.php
- > /wp-content/plugins/simple-ga-ranking/vendor/google/apiclient/examples/index.php
- > /wp-content/plugins/simple-ga-ranking/vendor/google/apiclient/tests/OAuthHelper.php
- 136× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/simple-ga-ranking/vendor/google/apiclient/src/Google/Service/Deploymentmanager.php:30
- > PHP Fatal error
Uncaught Error: Class 'BaseTest' not found in wp-content/plugins/simple-ga-ranking/vendor/google/apiclient/tests/adsense/AdSenseTest.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/simple-ga-ranking/vendor/google/apiclient/src/Google/Service/AdExchangeSeller.php:30
- > PHP Fatal error
Uncaught Error: Class 'BaseTest' not found in wp-content/plugins/simple-ga-ranking/vendor/google/apiclient/tests/plus/PlusTest.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/simple-ga-ranking/vendor/google/apiclient/src/Google/Service/Dataproc.php:29
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/simple-ga-ranking/vendor/google/apiclient/src/Google/Service/Prediction.php:30
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/simple-ga-ranking/vendor/google/apiclient/src/Google/Service/AndroidEnterprise.php:30
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/simple-ga-ranking/vendor/google/apiclient/src/Google/Service/Audit.php:32
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/simple-ga-ranking/vendor/google/apiclient/src/Google/Service/AdSense.php:30
- > PHP Fatal error
Uncaught Error: Class 'BaseTest' not found in wp-content/plugins/simple-ga-ranking/vendor/google/apiclient/tests/general/ApiModelTest.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: google analytics, popular, form, ranking
simple-ga-ranking/simple-ga-ranking.php 92% from 13 tests
Analyzing the main PHP file in "Simple GA Ranking" version 3.0.0
Please make the necessary changes and fix the following:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected213,818 lines of code in 231 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 207 | 14,424 | 41,490 | 213,093 |
JSON | 9 | 1 | 0 | 196 |
Markdown | 5 | 79 | 0 | 159 |
XML | 2 | 28 | 43 | 124 |
CSS | 2 | 16 | 15 | 84 |
PO File | 2 | 20 | 0 | 62 |
Sass | 1 | 1 | 0 | 39 |
YAML | 1 | 9 | 2 | 32 |
JavaScript | 1 | 6 | 4 | 23 |
INI | 1 | 0 | 1 | 6 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.02 |
Average class complexity | 1.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 1.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 3,893 | |
▷ Abstract classes | 7 | 0.18% |
▷ Concrete classes | 3,886 | 99.82% |
▷ Final classes | 0 | 0.00% |
Methods | 30,328 | |
▷ Static methods | 35 | 0.12% |
▷ Public methods | 30,226 | 99.66% |
▷ Protected methods | 34 | 0.11% |
▷ Private methods | 68 | 0.22% |
Functions | 46 | |
▷ Named functions | 24 | 52.17% |
▷ Anonymous functions | 22 | 47.83% |
Constants | 349 | |
▷ Global constants | 4 | 1.15% |
▷ Class constants | 345 | 98.85% |
▷ Public constants | 345 | 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
No PNG files were detected