Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼303.23ms] Passed 4 tests
An overview of server-side resources used by Indicative Analytics
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.10 ▼0.41 | 19.65 ▼30.47 |
Dashboard /wp-admin | 3.60 ▲0.19 | 32.17 ▼0.96 |
Posts /wp-admin/edit.php | 3.81 ▲0.17 | 36.21 ▲0.38 |
Add New Post /wp-admin/post-new.php | 7.45 ▲0.48 | 80.92 ▼1,181.47 |
Media Library /wp-admin/upload.php | 3.55 ▲0.26 | 23.02 ▼0.03 |
Log /wp-admin/admin.php?page=indicative-log | 3.50 | 21.89 |
Settings /wp-admin/admin.php?page=indicative-settings | 4.80 | 40.44 |
Server storage [IO: ▲3.96MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
These are issues you should consider
- You have illegally modified 1 file (4.26KB) outside of "wp-content/plugins/indicative-analytics/" and "wp-content/uploads/"
- (modified) wp-config.php
Filesystem: 1,008 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Indicative 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 / | 3,981 ▲237 | 16.76 ▲1.07 | 9.56 ▲3.49 | 2.72 ▲0.55 |
Dashboard /wp-admin | 2,970 ▲116 | 6.06 ▼0.15 | 116.52 ▼20.18 | 199.00 ▲38.96 |
Posts /wp-admin/edit.php | 2,766 ▲72 | 3.24 ▼0.12 | 61.04 ▼5.36 | 157.52 ▲16.80 |
Add New Post /wp-admin/post-new.php | 1,811 ▲150 | 22.81 ▲7.22 | 424.02 ▼21.42 | 154.10 ▼1.77 |
Media Library /wp-admin/upload.php | 1,773 ▲78 | 5.54 ▲0.00 | 125.83 ▼11.60 | 219.49 ▲34.48 |
Log /wp-admin/admin.php?page=indicative-log | 1,097 | 2.37 | 53.50 | 127.08 |
Settings /wp-admin/admin.php?page=indicative-settings | 1,351 | 2.38 | 52.26 | 141.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 458× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Carbon\\Carbon' not found in wp-content/plugins/indicative-analytics/vendor/illuminate/support/Carbon.php:9
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/indicative-analytics/vendor/symfony/translation/Tests/Dumper/PoFileDumperTest.php:18
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Translation\\Exception\\ExceptionInterface' not found in wp-content/plugins/indicative-analytics/vendor/symfony/translation/Exception/NotFoundResourceException.php:19
- > PHP Fatal error
Uncaught Error: Class 'Illuminate\\Database\\Console\\Migrations\\BaseCommand' not found in wp-content/plugins/indicative-analytics/vendor/illuminate/database/Console/Migrations/ResetCommand.php:9
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Translation\\Dumper\\FileDumper' not found in wp-content/plugins/indicative-analytics/vendor/symfony/translation/Dumper/QtFileDumper.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Ramsey\\Uuid\\Converter\\TimeConverterInterface' not found in wp-content/plugins/indicative-analytics/vendor/ramsey/uuid/src/Converter/Time/DegradedTimeConverter.php:25
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Finder\\Tests\\Iterator\\RealIteratorTestCase' not found in wp-content/plugins/indicative-analytics/vendor/symfony/finder/Tests/Iterator/ExcludeDirectoryFilterIteratorTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Translation\\Translator' not found in wp-content/plugins/indicative-analytics/vendor/nesbot/carbon/src/Carbon/Translator.php:7
- > PHP Fatal error
Uncaught Error: Class 'Illuminate\\Database\\Eloquent\\Model' not found in wp-content/plugins/indicative-analytics/vendor/illuminate/database/Eloquent/Relations/Pivot.php:9
- > PHP Fatal error
Uncaught Error: Class 'Illuminate\\Support\\Facades\\Facade' not found in wp-content/plugins/indicative-analytics/vendor/illuminate/support/Facades/Gate.php:10
- > 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 errors were detected
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 81% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Requires php: Invalid plugin version format
- Contributors: Plugin contributors field is missing
- Contributors: Please add at least on tag
indicative-analytics/indicative.php 77% from 13 tests
The entry point to "Indicative Analytics" version 1.8 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("indicative-analytics.php" instead of "indicative.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: The description should be shorter than 140 characters (currently 259 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin74,138 lines of code in 928 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 830 | 15,595 | 45,637 | 61,934 |
XSD | 4 | 99 | 76 | 4,991 |
Markdown | 28 | 1,367 | 0 | 4,051 |
JSON | 28 | 0 | 0 | 2,224 |
XML | 20 | 30 | 0 | 579 |
CSS | 2 | 36 | 0 | 250 |
PO File | 6 | 7 | 0 | 37 |
JavaScript | 1 | 6 | 0 | 28 |
YAML | 5 | 4 | 0 | 21 |
Qt Linguist | 1 | 0 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
Bourne Shell | 1 | 2 | 0 | 3 |
INI | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 334)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 8.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 348.00 |
Average method complexity | 1.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 334.00 |
Code structure | ||
---|---|---|
Namespaces | 135 | |
Interfaces | 136 | |
Traits | 25 | |
Classes | 590 | |
▷ Abstract classes | 32 | 5.42% |
▷ Concrete classes | 558 | 94.58% |
▷ Final classes | 10 | 1.79% |
Methods | 6,404 | |
▷ Static methods | 652 | 10.18% |
▷ Public methods | 5,122 | 79.98% |
▷ Protected methods | 1,025 | 16.01% |
▷ Private methods | 257 | 4.01% |
Functions | 559 | |
▷ Named functions | 181 | 32.38% |
▷ Anonymous functions | 378 | 67.62% |
Constants | 250 | |
▷ Global constants | 8 | 3.20% |
▷ Class constants | 242 | 96.80% |
▷ Public constants | 242 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/indicative-logo.png | 5.02KB | 3.24KB | ▼ 35.49% |
assets/img/indicative-menu-icon.png | 0.16KB | 0.12KB | ▼ 26.19% |