Benchmarks
Plugin footprint 48% 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.35MB] [CPU: ▲2.25ms] Passed 4 tests
Analyzing server-side resources used by Cookieless Backend Server Tracking for Google Analytics - WordPress Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 42.61 ▼1.24 |
Dashboard /wp-admin | 3.74 ▲0.40 | 53.24 ▼6.79 |
Posts /wp-admin/edit.php | 3.79 ▲0.44 | 57.65 ▲10.18 |
Add New Post /wp-admin/post-new.php | 6.26 ▲0.37 | 102.49 ▲6.84 |
Media Library /wp-admin/upload.php | 3.60 ▲0.37 | 46.31 ▲12.46 |
GA Backend Tracking /wp-admin/options-general.php?page=nsc_gabt_settings | 3.60 | 38.92 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Cookieless Backend Server Tracking for Google Analytics - WordPress Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.34 ▼0.04 | 1.83 ▲0.17 | 42.91 ▼0.11 |
Dashboard /wp-admin | 2,199 ▲22 | 5.60 ▼0.06 | 81.74 ▼4.51 | 41.40 ▲1.66 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.97 ▼0.06 | 40.06 ▲3.32 | 35.50 ▲1.48 |
Add New Post /wp-admin/post-new.php | 1,529 ▼2 | 23.57 ▲0.44 | 650.08 ▲29.40 | 68.98 ▲13.64 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.20 ▲0.00 | 97.07 ▲2.33 | 42.77 ▼2.02 |
GA Backend Tracking /wp-admin/options-general.php?page=nsc_gabt_settings | 844 | 2.00 | 23.65 | 22.90 |
Uninstaller [IO: ▲0.13MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following itemsThis plugin did not uninstall successfully, leaving 7 options in the database
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/ga-backend-tracking/uninstall.php+7
Constant NSC_GABT_PLUGINPATH already defined
- The plugin did not uninstall correctly, leaving 16 files (0.13MB) in the plugin directory
- (new file) LICENCE
- (new file) botregexp.txt
- (new file) class/class_nsc_gabt_extension_blacklist.php
- (new file) admin/js/admin.js
- (new file) class/class_nsc_gabt_backend.php
- (new file) admin/tpl/admin.php
- (new file) class/class_nsc_gabt_collect_data_order.php
- (new file) class/class_nsc_gabt_cid_manager.php
- (new file) class/class-de-nikelschubert-nsc_gabt.php
- (new file) class/class_nsc_gabt_collect_data.php
- ...
- widget_recent-comments
- can_compress_scripts
- recovery_mode_email_last_sent
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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 take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/ga-backend-tracking/uninstall.php
- 10× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/ga-backend-tracking/admin/tpl/admin.php:22
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/ga-backend-tracking/admin/tpl/admin.php on line 9
- > PHP Notice
Trying to get property 'active_tab_index' of non-object in wp-content/plugins/ga-backend-tracking/admin/tpl/admin.php on line 16
- > PHP Notice
Trying to get property 'setting_page_fields' of non-object in wp-content/plugins/ga-backend-tracking/admin/tpl/admin.php on line 9
- > PHP Notice
Trying to get property 'setting_page_fields' of non-object in wp-content/plugins/ga-backend-tracking/admin/tpl/admin.php on line 16
- > PHP Notice
Trying to get property 'tabs' of non-object in wp-content/plugins/ga-backend-tracking/admin/tpl/admin.php on line 9
- > PHP Notice
Undefined variable: objSettings in wp-content/plugins/ga-backend-tracking/admin/tpl/admin.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'de_nikelschubert_nsc_gabt' not found in wp-content/plugins/ga-backend-tracking/class/class_nsc_gabt_frontend.php:3
- > PHP Fatal error
Uncaught Error: Class 'de_nikelschubert_nsc_gabt' not found in wp-content/plugins/ga-backend-tracking/class/class_nsc_gabt_backend.php:3
- > PHP Notice
Undefined variable: objSettings in wp-content/plugins/ga-backend-tracking/admin/tpl/admin.php on line 16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Contributors: The plugin contributors field is missing
ga-backend-tracking/nsc_google_analytics_backend-tracking.php 92% from 13 tests
The main file in "Cookieless Backend Server Tracking for Google Analytics - WordPress Plugin" v. 2.4.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("ga-backend-tracking.php" instead of "nsc_google_analytics_backend-tracking.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected1,874 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 234 | 53 | 1,409 |
JSON | 1 | 0 | 0 | 386 |
JavaScript | 1 | 11 | 8 | 79 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 24.11 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 3.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 97 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 64 | 65.98% |
▷ Protected methods | 4 | 4.12% |
▷ Private methods | 29 | 29.90% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin