78% etracker

Code Review | etracker Analytics

WordPress plugin etracker Analytics scored78%from 54 tests.

About plugin

  • Plugin page: etracker
  • Plugin version: 2.4.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.4
  • WordPress version: 6.3.1
  • First release: Mar 13, 2020
  • Latest release: Nov 2, 2023
  • Number of updates: 38
  • Update frequency: every 35.0 days
  • Top authors: etrackerofficial (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active /18,220 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.57MB] [CPU: ▼0.11ms] Passed 4 tests

Analyzing server-side resources used by etracker Analytics
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.04 ▲0.5845.54 ▲2.31
Dashboard /wp-admin3.88 ▲0.5754.35 ▲4.48
Posts /wp-admin/edit.php4.01 ▲0.6550.41 ▲1.07
Add New Post /wp-admin/post-new.php6.46 ▲0.5789.59 ▼6.90
Media Library /wp-admin/upload.php3.79 ▲0.5539.75 ▲3.07
etracker Analytics /wp-admin/options-general.php?page=etracker3.7736.70

Server storage [IO: ▲0.63MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
Please try to fix the following items
  • The plugin illegally modified 1 file (0.58KB) outside of "wp-content/plugins/etracker/" and "wp-content/uploads/"
    • (modified) .htaccess
Filesystem: 71 new files
Database: 2 new tables, 7 new options
New tables
wp_etracker_reporting_data
wp_etracker_logging
New WordPress options
widget_theysaidso_widget
widget_recent-comments
etracker_db_version
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

etracker Analytics: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲3214.35 ▼0.011.69 ▼0.2543.59 ▼0.90
Dashboard /wp-admin2,218 ▲385.53 ▼0.1283.29 ▼7.5439.60 ▼7.16
Posts /wp-admin/edit.php2,190 ▲902.13 ▲0.1734.44 ▼3.6832.53 ▼1.46
Add New Post /wp-admin/post-new.php1,531 ▲523.22 ▼0.25688.50 ▼59.0452.15 ▼10.65
Media Library /wp-admin/upload.php1,409 ▲64.20 ▲0.0298.08 ▼1.4642.64 ▼0.31
etracker Analytics /wp-admin/options-general.php?page=etracker1,0282.2526.4735.84

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • etracker_db_version

Smoke tests 50% from 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 everything seems fine, this is not an exhaustive test

SRP 50% 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
Almost there! Just fix the following items
  • 16× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Etracker\\Exceptions\\PluginException' not found in wp-content/plugins/etracker/src/Reporting/Exceptions/ReportQueryException.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Etracker\\Reporting\\Report\\Report' not found in wp-content/plugins/etracker/src/Reporting/Report/EAPageReport.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'Etracker\\Exceptions\\PluginException' not found in wp-content/plugins/etracker/src/Reporting/Exceptions/ClientSessionException.php:22
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/etracker/src/Backend/LogViewer.php on line 34
    • > PHP Fatal error
      Uncaught Error: Class 'Etracker\\Reporting\\Exceptions\\ReportQueryException' not found in wp-content/plugins/etracker/src/Reporting/Exceptions/ReportQueryDataException.php:20
    • > PHP Fatal error
      Uncaught Error: Interface 'Etracker\\Frontend\\Hooks\\ThirdParty\\ThirdPartyIntegrationInterface' not found in wp-content/plugins/etracker/src/Frontend/Hooks/ThirdParty/WP_Rocket.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'Etracker\\Reporting\\Exceptions\\ReportQueryException' not found in wp-content/plugins/etracker/src/Reporting/Exceptions/ReportQueryMetaException.php:20
    • > PHP Fatal error
      Uncaught Error: Interface 'Etracker\\Reporting\\Report\\ReportConfigFilter\\ReportConfigFilterInterface' not found in wp-content/plugins/etracker/src/Reporting/Report/ReportConfigFilter/Last30Days.php:23
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/etracker/src/Backend/LogViewer.php on line 34
    • > PHP Fatal error
      Uncaught Error: Class 'Etracker\\Reporting\\Report\\Report' not found in wp-content/plugins/etracker/src/Mock/Reporting/Report/MockEAPageReport.php:23

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=etracker
    • > Network (severe)
    sw.js - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: wallet, push notifications, signalize, etracker analytics, gdpr...

etracker/etracker.php 92% from 13 tests

The main PHP file in "etracker Analytics" ver. 2.4.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("5.3.0" instead of "5.3")

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
Everything looks great! No dangerous files found in this plugin4,162 lines of code in 61 files:
LanguageFilesBlank linesComment linesLines of code
PHP538543,6073,476
PO File15969212
Markdown1670191
JSON300162
CSS11214119
JavaScript1001
SVG1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity8.80
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity2.16
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces18
Interfaces4
Traits0
Classes40
▷ Abstract classes12.50%
▷ Concrete classes3997.50%
▷ Final classes00.00%
Methods312
▷ Static methods5316.99%
▷ Public methods27788.78%
▷ Protected methods41.28%
▷ Private methods319.94%
Functions7
▷ Named functions571.43%
▷ Anonymous functions228.57%
Constants12
▷ Global constants433.33%
▷ Class constants866.67%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin