Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲6.39MB] [CPU: ▲58.55ms] 75% from 4 tests
An overview of server-side resources used by Independent Analytics - Google Analytics Alternative for WordPress
It is recommended to improve the following
- Extra RAM: Try to keep extra memory usage under 5MB (currently 6.39MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 10.53 ▲7.06 | 92.88 ▲53.32 |
Dashboard /wp-admin | 11.78 ▲8.47 | 125.60 ▲75.38 |
Posts /wp-admin/edit.php | 8.91 ▲5.55 | 105.22 ▲62.76 |
Add New Post /wp-admin/post-new.php | 13.13 ▲7.25 | 163.57 ▲67.07 |
Media Library /wp-admin/upload.php | 8.91 ▲5.68 | 84.23 ▲51.05 |
Freemius Debug [v.2.5.11] /wp-admin/admin.php?page=freemius | 8.91 | 81.24 |
Server storage [IO: ▲16.48MB] [DB: ▲0.04MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2,745 new files
Database: 13 new tables, 14 new options
New tables |
---|
wp_independent_analytics_referrer_groups |
wp_independent_analytics_sessions |
wp_independent_analytics_visitors_1_16_archive |
wp_independent_analytics_views |
wp_independent_analytics_campaigns |
wp_independent_analytics_cities |
wp_independent_analytics_wc_orders |
wp_independent_analytics_resources |
wp_independent_analytics_referrers |
wp_independent_analytics_campaign_urls |
... |
New WordPress options |
---|
fs_active_plugins |
theysaidso_admin_options |
widget_theysaidso_widget |
fs_debug_mode |
iawp_need_clear_cache |
iawp_geo_database_download_last_attempted_at |
iawp_db_version |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Independent Analytics - Google Analytics Alternative for WordPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,086 ▲299 | 17.04 ▲2.91 | 2.06 ▲0.15 | 21.55 ▼24.38 |
Dashboard /wp-admin | 2,419 ▲239 | 7.32 ▲1.67 | 128.06 ▲34.82 | 65.44 ▲20.39 |
Posts /wp-admin/edit.php | 2,142 ▲42 | 1.99 ▲0.03 | 40.92 ▲1.61 | 47.20 ▲10.44 |
Add New Post /wp-admin/post-new.php | 1,591 ▲65 | 21.97 ▼1.21 | 819.37 ▲56.52 | 47.31 ▼8.87 |
Media Library /wp-admin/upload.php | 1,441 ▲47 | 4.23 ▲0.04 | 109.00 ▲3.62 | 44.16 ▼4.55 |
Freemius Debug [v.2.5.11] /wp-admin/admin.php?page=freemius | 1,093 | 1.66 | 38.23 | 32.74 |
Uninstaller [IO: ▲93.64MB] [DB: ▲0.04MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/independent-analytics/freemius/includes/class-freemius.php+8515
Undefined property: stdClass::$plugins
- The uninstall procedure failed, leaving 13 tables in the database
- wp_independent_analytics_views
- wp_independent_analytics_reports
- wp_independent_analytics_cities
- wp_independent_analytics_devices
- wp_independent_analytics_wc_orders
- wp_independent_analytics_campaigns
- wp_independent_analytics_countries
- wp_independent_analytics_referrers
- wp_independent_analytics_sessions
- wp_independent_analytics_resources
- ...
- The uninstall procedure has failed, leaving 14 options in the database
- db_upgraded
- iawp_is_database_downloading
- widget_recent-posts
- iawp_db_version
- widget_recent-comments
- iawp_is_migrating
- iawp_geo_database_download_last_attempted_at
- widget_theysaidso_widget
- fs_accounts
- fs_active_plugins
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 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
Almost there! Just fix the following items
- 17× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/independent-analytics/views/learn/learn.blade.php
- > /wp-content/plugins/independent-analytics/views/icons/devices.blade.php
- > /wp-content/plugins/independent-analytics/views/partials/report-header.blade.php
- > /wp-content/plugins/independent-analytics/views/icons/reviews.blade.php
- > /wp-content/plugins/independent-analytics/views/icons/campaign-builder.blade.php
- > /wp-content/plugins/independent-analytics/views/icons/real-time.blade.php
- > /wp-content/plugins/independent-analytics/views/icons/knowledgebase.blade.php
- > /wp-content/plugins/independent-analytics/views/icons/referrers.blade.php
- > /wp-content/plugins/independent-analytics/views/partials/toolbar.blade.php
- > /wp-content/plugins/independent-analytics/views/settings/export-reports.blade.php
- 648× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'IAWP_SCOPED\\Carbon\\Exceptions\\InvalidArgumentException' not found in wp-content/plugins/independent-analytics/vendor/nesbot/carbon/src/Carbon/Exceptions/NotACarbonClassException.php:16
- > PHP Fatal error
Uncaught Error: Interface 'IAWP_SCOPED\\League\\Uri\\Contracts\\UriException' not found in wp-content/plugins/independent-analytics/vendor/league/uri-interfaces/src/Exceptions/SyntaxError.php:15
- > PHP Fatal error
Uncaught Error: Class 'IAWP_SCOPED\\IAWP\\Migrations\\Migration' not found in wp-content/plugins/independent-analytics/IAWP/Migrations/Migration_18.php:6
- > PHP Fatal error
Uncaught Error: Class 'IAWP_SCOPED\\Carbon\\Doctrine\\DateTimeType' not found in wp-content/plugins/independent-analytics/vendor/nesbot/carbon/src/Carbon/Doctrine/CarbonType.php:14
- > PHP Fatal error
Uncaught Error: Class 'IAWP_SCOPED\\Carbon\\AbstractTranslator' not found in wp-content/plugins/independent-analytics/vendor/nesbot/carbon/lazy/Carbon/TranslatorWeakType.php:14
- > PHP Fatal error
Uncaught Error: Class 'IAWP_SCOPED\\Symfony\\Component\\Translation\\Loader\\IcuResFileLoader' not found in wp-content/plugins/independent-analytics/vendor/symfony/translation/Loader/IcuDatFileLoader.php:22
- > PHP Fatal error
Uncaught Error: Class 'IAWP_SCOPED\\Illuminate\\Database\\Events\\MigrationsEvent' not found in wp-content/plugins/independent-analytics/vendor/illuminate/database/Events/MigrationsEnded.php:5
- > PHP Fatal error
Uncaught Error: Class 'IAWP_SCOPED\\Symfony\\Component\\Console\\Output\\Output' not found in wp-content/plugins/independent-analytics/vendor/symfony/console/Output/StreamOutput.php:28
- > PHP Fatal error
Uncaught Error: Interface 'IAWP_SCOPED\\Carbon\\Exceptions\\BadMethodCallException' not found in wp-content/plugins/independent-analytics/vendor/nesbot/carbon/src/Carbon/Exceptions/BadFluentSetterException.php:15
- > PHP Fatal error
Uncaught Error: Class 'IAWP_SCOPED\\IAWP\\Migrations\\Migration' not found in wp-content/plugins/independent-analytics/IAWP/Migrations/Migration_8.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (12 tag instead of maximum 10)
independent-analytics/iawp.php 92% from 13 tests
The main PHP script in "Independent Analytics - Google Analytics Alternative for WordPress" version 2.0.1 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("independent-analytics.php" instead of "iawp.php")
Code Analysis 0% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Please fix the following items
- Do not distribute dangerous files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/independent-analytics/vendor/nesbot/carbon/bin/carbon.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2,036 | 12,201 | 91,207 | 118,205 |
YAML | 21 | 3,575 | 2,871 | 42,483 |
SVG | 282 | 17 | 6 | 4,629 |
PO File | 6 | 1,752 | 2,032 | 3,596 |
XSD | 3 | 92 | 48 | 2,803 |
JSON | 2 | 0 | 0 | 2,558 |
Blade | 49 | 20 | 21 | 1,863 |
C | 1 | 118 | 25 | 668 |
JavaScript | 9 | 34 | 119 | 210 |
XML | 4 | 25 | 13 | 155 |
reStructuredText | 1 | 74 | 78 | 74 |
Bourne Again Shell | 1 | 10 | 14 | 60 |
m4 | 1 | 8 | 0 | 32 |
CSS | 18 | 0 | 0 | 18 |
C/C++ Header | 1 | 4 | 12 | 8 |
DOS Batch | 1 | 0 | 0 | 4 |
PHP code 0% from 2 tests
A short review of cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,087)
- Method cyclomatic complexity should be reduced to less than 100 (currently 140)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 14.49 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,087.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 140.00 |
Code structure | ||
---|---|---|
Namespaces | 170 | |
Interfaces | 201 | |
Traits | 72 | |
Classes | 825 | |
▷ Abstract classes | 60 | 7.27% |
▷ Concrete classes | 765 | 92.73% |
▷ Final classes | 85 | 11.11% |
Methods | 10,267 | |
▷ Static methods | 1,291 | 12.57% |
▷ Public methods | 7,494 | 72.99% |
▷ Protected methods | 1,799 | 17.52% |
▷ Private methods | 974 | 9.49% |
Functions | 1,267 | |
▷ Named functions | 389 | 30.70% |
▷ Anonymous functions | 878 | 69.30% |
Constants | 641 | |
▷ Global constants | 119 | 18.56% |
▷ Class constants | 522 | 81.44% |
▷ Public constants | 420 | 80.46% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/logo-white.png | 13.95KB | 7.82KB | ▼ 43.94% |
img/logo.png | 25.73KB | 8.93KB | ▼ 65.29% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
img/favicon.png | 4.80KB | 2.28KB | ▼ 52.54% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |