Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲5.51MB] [CPU: ▲25.48ms] 75% from 4 tests
A check of server-side resources used by Google Analytics WordPress Plugin by GA4WP
It is recommended to improve the following
- Extra RAM: Extra memory usage must be kept under 5MB (currently 5.51MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.26 ▲5.79 | 68.43 ▲29.13 |
Dashboard /wp-admin | 9.28 ▲5.93 | 73.98 ▲7.40 |
Posts /wp-admin/edit.php | 9.28 ▲5.92 | 88.83 ▲40.19 |
Add New Post /wp-admin/post-new.php | 10.28 ▲4.39 | 123.48 ▲26.93 |
Media Library /wp-admin/upload.php | 9.28 ▲6.05 | 71.37 ▲38.46 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 9.28 | 65.45 |
Server storage [IO: ▲5.25MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 219 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
fs_active_plugins |
can_compress_scripts |
ga4wp_review_request_time |
widget_recent-comments |
fs_debug_mode |
theysaidso_admin_options |
fs_accounts |
Browser metrics Passed 4 tests
An overview of browser requirements for Google Analytics WordPress Plugin by GA4WP
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲80 | 14.34 ▲0.07 | 1.71 ▼0.12 | 29.74 ▼13.35 |
Dashboard /wp-admin | 2,220 ▲42 | 5.58 ▼0.04 | 94.92 ▼15.43 | 80.47 ▲37.68 |
Posts /wp-admin/edit.php | 2,138 ▲38 | 2.02 ▲0.01 | 38.53 ▼1.93 | 41.49 ▲5.34 |
Add New Post /wp-admin/post-new.php | 1,549 ▲23 | 23.07 ▼0.32 | 607.20 ▼28.61 | 165.68 ▲111.85 |
Media Library /wp-admin/upload.php | 1,440 ▲40 | 4.25 ▲0.07 | 96.35 ▲3.05 | 75.15 ▲32.20 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,102 | 1.67 | 30.90 | 31.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/ga-for-wp/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- This plugin did not uninstall successfully, leaving 10 options in the database
- widget_recent-posts
- fs_accounts
- theysaidso_admin_options
- ga4wp_review_request_time
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- fs_debug_mode
- fs_active_plugins
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
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 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: gtag, wordpress, google analytics dashboard, analytics plugin, google analytics...
ga-for-wp/ga-for-wp.php 85% from 13 tests
This is the main PHP file of "Google Analytics WordPress Plugin by GA4WP" version 2.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "3.7.0")
- Description: The description should be shorter than 140 characters (currently 244 characters long)
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
No dangerous file extensions were detected38,940 lines of code in 163 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 136 | 8,357 | 17,752 | 38,150 |
JavaScript | 11 | 34 | 153 | 360 |
CSS | 15 | 0 | 12 | 216 |
Markdown | 1 | 68 | 0 | 214 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 82.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 61 | |
▷ Abstract classes | 3 | 4.92% |
▷ Concrete classes | 58 | 95.08% |
▷ Final classes | 0 | 0.00% |
Methods | 1,417 | |
▷ Static methods | 202 | 14.26% |
▷ Public methods | 985 | 69.51% |
▷ Protected methods | 31 | 2.19% |
▷ Private methods | 401 | 28.30% |
Functions | 103 | |
▷ Named functions | 101 | 98.06% |
▷ Anonymous functions | 2 | 1.94% |
Constants | 153 | |
▷ Global constants | 105 | 68.63% |
▷ Class constants | 48 | 31.37% |
▷ Public constants | 48 | 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
14 PNG files occupy 0.19MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assests/images/close.png | 15.54KB | 0.51KB | ▼ 96.71% |
assests/images/GA4WPFevicon.png | 2.32KB | 0.63KB | ▼ 72.76% |
assests/images/icon-1.png | 3.88KB | 1.95KB | ▼ 49.82% |
assests/images/google-icon.png | 107.26KB | 35.91KB | ▼ 66.52% |
assests/images/icon-6.png | 2.02KB | 1.03KB | ▼ 48.98% |