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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.04 ▲0.58 | 45.54 ▲2.31 |
Dashboard /wp-admin | 3.88 ▲0.57 | 54.35 ▲4.48 |
Posts /wp-admin/edit.php | 4.01 ▲0.65 | 50.41 ▲1.07 |
Add New Post /wp-admin/post-new.php | 6.46 ▲0.57 | 89.59 ▼6.90 |
Media Library /wp-admin/upload.php | 3.79 ▲0.55 | 39.75 ▲3.07 |
etracker Analytics /wp-admin/options-general.php?page=etracker | 3.77 | 36.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲32 | 14.35 ▼0.01 | 1.69 ▼0.25 | 43.59 ▼0.90 |
Dashboard /wp-admin | 2,218 ▲38 | 5.53 ▼0.12 | 83.29 ▼7.54 | 39.60 ▼7.16 |
Posts /wp-admin/edit.php | 2,190 ▲90 | 2.13 ▲0.17 | 34.44 ▼3.68 | 32.53 ▼1.46 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.22 ▼0.25 | 688.50 ▼59.04 | 52.15 ▼10.65 |
Media Library /wp-admin/upload.php | 1,409 ▲6 | 4.20 ▲0.02 | 98.08 ▼1.46 | 42.64 ▼0.31 |
etracker Analytics /wp-admin/options-general.php?page=etracker | 1,028 | 2.25 | 26.47 | 35.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 53 | 854 | 3,607 | 3,476 |
PO File | 1 | 59 | 69 | 212 |
Markdown | 1 | 67 | 0 | 191 |
JSON | 3 | 0 | 0 | 162 |
CSS | 1 | 12 | 14 | 119 |
JavaScript | 1 | 0 | 0 | 1 |
SVG | 1 | 0 | 0 | 1 |
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 code | 0.28 |
Average class complexity | 8.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 18 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 40 | |
▷ Abstract classes | 1 | 2.50% |
▷ Concrete classes | 39 | 97.50% |
▷ Final classes | 0 | 0.00% |
Methods | 312 | |
▷ Static methods | 53 | 16.99% |
▷ Public methods | 277 | 88.78% |
▷ Protected methods | 4 | 1.28% |
▷ Private methods | 31 | 9.94% |
Functions | 7 | |
▷ Named functions | 5 | 71.43% |
▷ Anonymous functions | 2 | 28.57% |
Constants | 12 | |
▷ Global constants | 4 | 33.33% |
▷ Class constants | 8 | 66.67% |
▷ Public constants | 8 | 100.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