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: ▲4.25MB] [CPU: ▲42.72ms] Passed 4 tests
This is a short check of server-side resources used by First Party Analytics
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.71 ▲4.25 | 104.47 ▲54.52 |
Dashboard /wp-admin | 7.90 ▲4.59 | 96.59 ▲43.42 |
Posts /wp-admin/edit.php | 7.60 ▲4.24 | 103.95 ▲44.61 |
Add New Post /wp-admin/post-new.php | 10.16 ▲4.27 | 143.87 ▲28.33 |
Media Library /wp-admin/upload.php | 7.47 ▲4.24 | 101.66 ▲61.72 |
First Party Analytics /wp-admin/admin.php?page=first-party-analytics | 7.57 | 83.59 |
Settings /wp-admin/admin.php?page=first-party-analytics-settings | 7.51 | 86.88 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 7.68 | 100.76 |
Server storage [IO: ▲13.56MB] [DB: ▲0.15MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please try to fix the following items
- Illegal file modification found: 1 file (2.72KB) outside of "wp-content/plugins/first-party-analytics/" and "wp-content/uploads/"
- (new file) wp-content/mu-plugins/first-party-analytics-ajax-optimizer.php
Filesystem: 1,035 new files
Database: 15 new tables, 14 new options
New tables |
---|
wp_first_party_analytics_v2_search_words |
wp_first_party_analytics_v2_visitor_details |
wp_actionscheduler_actions |
wp_actionscheduler_groups |
wp_actionscheduler_logs |
wp_first_party_analytics_v2_special_url_params |
wp_first_party_analytics_v2_time_of_day |
wp_first_party_analytics_v2_standard_events_meta |
wp_actionscheduler_claims |
wp_first_party_analytics_v2_standard_events |
... |
New WordPress options |
---|
widget_recent-comments |
schema-ActionScheduler_StoreSchema |
widget_theysaidso_widget |
schema-ActionScheduler_LoggerSchema |
first-party-analytics-fields-mapping-last-known-hashes |
action_scheduler_hybrid_store_demarkation |
widget_recent-posts |
first-party-analytics-salt |
wp-plugins-core-notifications-first-party-analytics |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for First Party Analytics
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,474 ▲688 | 14.01 ▼0.54 | 19.54 ▲17.49 | 35.35 ▼9.52 |
Dashboard /wp-admin | 2,824 ▲647 | 5.31 ▼0.36 | 128.70 ▲30.42 | 53.51 ▲13.13 |
Posts /wp-admin/edit.php | 2,200 ▲100 | 2.70 ▲0.74 | 43.27 ▲3.39 | 31.71 ▼2.06 |
Add New Post /wp-admin/post-new.php | 1,568 ▲40 | 21.40 ▼1.62 | 654.61 ▼31.77 | 33.61 ▼21.96 |
Media Library /wp-admin/upload.php | 1,518 ▲115 | 4.91 ▲0.75 | 105.18 ▲5.29 | 44.47 ▼5.33 |
First Party Analytics /wp-admin/admin.php?page=first-party-analytics | 7,587 | 11.67 | 263.08 | 129.05 |
Settings /wp-admin/admin.php?page=first-party-analytics-settings | 1,507 | 2.52 | 31.30 | 42.16 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 1,642 | 2.52 | 33.90 | 33.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.15MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie tables were found after uninstall: 15 tables
- wp_first_party_analytics_v2_page_visits_on_finish
- wp_first_party_analytics_v2_time_of_day
- wp_actionscheduler_claims
- wp_actionscheduler_groups
- wp_first_party_analytics_v2_standard_events_meta
- wp_first_party_analytics_v2_search_words
- wp_first_party_analytics_v2_standard_events
- wp_first_party_analytics_v2_sessions
- wp_first_party_analytics_v2_link_visits
- wp_first_party_analytics_v2_visitor_details
- ...
- This plugin did not uninstall successfully, leaving 14 options in the database
- first-party-analytics-fields-mapping-last-known-hashes
- action_scheduler_hybrid_store_demarkation
- theysaidso_admin_options
- first-party-analytics-tracking-cookie-name
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- first-party-analytics-salt
- can_compress_scripts
- ...
Smoke tests 25% 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/admin.php?page=first-party-analytics
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/first-party-analytics/src/class-stop-words.php+58
Undefined index: default
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
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/first-party-analytics/vendor/whichbrowser/parser/bin/update-browser-ids.php
- > /wp-content/plugins/first-party-analytics/src/standalone-scripts/noscript-tracker.php
- > /wp-content/plugins/first-party-analytics/vendor/whichbrowser/parser/bin/update-profiles.php
- > /wp-content/plugins/first-party-analytics/vendor/whichbrowser/parser/bin/update-chrome.php
- 202× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Pdp\\Host' not found in wp-content/plugins/first-party-analytics/vendor/jeremykendall/php-domain-parser/src/EffectiveTopLevelDomain.php:7
- > PHP Parse error
syntax error, unexpected '?', expecting variable (T_VARIABLE) in wp-content/plugins/first-party-analytics/vendor/jeremykendall/php-domain-parser/src/Storage/TopLevelDomainListPsr16Cache.php on line 19
- > PHP Fatal error
Uncaught Error: Class 'Action_Scheduler\\Migration\\ActionMigrator' not found in wp-content/plugins/first-party-analytics/vendor/woocommerce/action-scheduler/classes/migration/DryRun_ActionMigrator.php:15
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_LogEntry' not found in wp-content/plugins/first-party-analytics/vendor/woocommerce/action-scheduler/classes/ActionScheduler_NullLogEntry.php:6
- > PHP Fatal error
Uncaught Error: Class 'First_Party_Analytics\\Representation\\Tables\\Table' not found in wp-content/plugins/first-party-analytics/src/representation/tables/class-searches.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/first-party-analytics/src/templates/admin/screens/settings.php:23
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/first-party-analytics/vendor/whichbrowser/parser/bin/update-indices.php on line 14
- > PHP Fatal error
Uncaught Error: Class 'WhichBrowser\\Data\\DeviceModels' not found in wp-content/plugins/first-party-analytics/vendor/whichbrowser/parser/data/models-asha.php:5
- > PHP Fatal error
Uncaught Error: Class 'First_Party_Analytics\\Databases\\Database' not found in wp-content/plugins/first-party-analytics/src/database/class-page-visits-on-finish.php:20
- > PHP Fatal error
Uncaught Error: Class 'WhichBrowser\\Model\\Primitive\ameVersion' not found in wp-content/plugins/first-party-analytics/vendor/whichbrowser/parser/src/Model/Browser.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% 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:
- Tags: There are too many tags (11 tag instead of maximum 10)
first-party-analytics/first-party-analytics.php Passed 13 tests
The primary PHP file in "First Party Analytics" version 1.2.18 is used by WordPress to initiate all plugin functionality
35 characters long description:
A plugin for first-party analytics.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin153,076 lines of code in 901 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 532 | 11,633 | 18,330 | 107,974 |
JavaScript | 188 | 6,052 | 1,299 | 34,578 |
CSS | 57 | 112 | 117 | 2,509 |
Markdown | 24 | 928 | 0 | 2,015 |
TypeScript | 44 | 583 | 3,438 | 2,012 |
JSON | 21 | 7 | 0 | 1,710 |
Sass | 20 | 46 | 1 | 845 |
C | 1 | 118 | 25 | 668 |
LESS | 7 | 13 | 25 | 415 |
Svelte | 2 | 31 | 0 | 244 |
XML | 2 | 6 | 1 | 65 |
m4 | 1 | 8 | 0 | 32 |
C/C++ Header | 1 | 4 | 12 | 8 |
SVG | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 16.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 489.00 |
Average method complexity | 3.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 52 | |
Interfaces | 35 | |
Traits | 28 | |
Classes | 342 | |
▷ Abstract classes | 20 | 5.85% |
▷ Concrete classes | 322 | 94.15% |
▷ Final classes | 148 | 45.96% |
Methods | 2,268 | |
▷ Static methods | 591 | 26.06% |
▷ Public methods | 1,620 | 71.43% |
▷ Protected methods | 195 | 8.60% |
▷ Private methods | 453 | 19.97% |
Functions | 260 | |
▷ Named functions | 147 | 56.54% |
▷ Anonymous functions | 113 | 43.46% |
Constants | 532 | |
▷ Global constants | 99 | 18.61% |
▷ Class constants | 433 | 81.39% |
▷ Public constants | 398 | 91.92% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
media/tracking-pixel-image.png | 0.07KB | 0.09KB | 0.00% |
assets/images/filter_icon-0.png | 6.12KB | 6.01KB | ▼ 1.72% |
assets/images/filter_icon.png | 46.02KB | 16.34KB | ▼ 64.49% |