Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲2.92MB] [CPU: ▲14.91ms] Passed 4 tests
This is a short check of server-side resources used by Intelligence
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.53 ▲3.07 | 62.91 ▲19.18 |
Dashboard /wp-admin | 6.45 ▲3.15 | 68.87 ▲17.16 |
Posts /wp-admin/edit.php | 6.41 ▲3.06 | 72.90 ▲26.83 |
Add New Post /wp-admin/post-new.php | 8.67 ▲2.79 | 105.28 ▲3.88 |
Media Library /wp-admin/upload.php | 6.01 ▲2.78 | 56.66 ▲19.43 |
Dashboard /wp-admin/admin.php?page=intel_admin | 6.65 | 57.12 |
Reports /wp-admin/admin.php?page=intel_reports | 6.65 | 55.66 |
Contacts /wp-admin/admin.php?page=intel_visitor | 6.75 | 55.41 |
Annotations /wp-admin/admin.php?page=intel_annotation | 7.27 | 56.14 |
Help /wp-admin/admin.php?page=intel_help | 6.73 | 50.47 |
Utilities /wp-admin/admin.php?page=intel_util | 6.82 | 54.74 |
Settings /wp-admin/admin.php?page=intel_config | 7.78 | 59.97 |
Server storage [IO: ▲8.17MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 784 new files
Database: 6 new tables, 11 new options
New tables |
---|
wp_intel_value_str |
wp_intel_visitor_identifier |
wp_intel_annotation |
wp_intel_submission |
wp_intel_visitor |
wp_intel_entity_attr |
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
intel_system_meta |
intel_system |
theysaidso_admin_options |
intel_entity_settings_taxonomy__post_tag |
intel_entity_settings_taxonomy__category |
widget_recent-comments |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Intelligence
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,977 ▲206 | 13.67 ▼0.71 | 5.31 ▲3.29 | 37.65 ▼2.85 |
Dashboard /wp-admin | 2,250 ▲62 | 5.83 ▲0.73 | 106.30 ▲1.73 | 39.48 ▼1.83 |
Posts /wp-admin/edit.php | 2,164 ▲93 | 2.03 ▲0.04 | 41.28 ▲3.20 | 36.41 ▼1.36 |
Add New Post /wp-admin/post-new.php | 1,579 ▲43 | 18.32 ▼4.97 | 611.15 ▼42.76 | 62.18 ▲9.63 |
Media Library /wp-admin/upload.php | 1,435 ▲47 | 4.37 ▲0.12 | 97.43 ▼15.00 | 43.73 ▼0.16 |
Dashboard /wp-admin/admin.php?page=intel_admin | 1,048 | 1.89 | 27.90 | 34.24 |
Reports /wp-admin/admin.php?page=intel_reports | 1,048 | 1.80 | 30.46 | 37.38 |
Contacts /wp-admin/admin.php?page=intel_visitor | 930 | 1.94 | 27.72 | 30.57 |
Annotations /wp-admin/admin.php?page=intel_annotation | 891 | 1.82 | 25.75 | 29.94 |
Help /wp-admin/admin.php?page=intel_help | 906 | 1.80 | 27.02 | 29.33 |
Utilities /wp-admin/admin.php?page=intel_util | 913 | 1.80 | 25.50 | 33.46 |
Settings /wp-admin/admin.php?page=intel_config | 951 | 1.80 | 26.73 | 32.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie tables detected upon uninstall: 6 tables
- wp_intel_entity_attr
- wp_intel_annotation
- wp_intel_visitor
- wp_intel_submission
- wp_intel_value_str
- wp_intel_visitor_identifier
- This plugin did not uninstall successfully, leaving 11 options in the database
- db_upgraded
- intel_entity_settings_taxonomy__category
- widget_recent-comments
- intel_system_meta
- widget_theysaidso_widget
- intel_entity_settings_taxonomy__post_tag
- can_compress_scripts
- intel_entity_settings_taxonomy__post_format
- widget_recent-posts
- theysaidso_admin_options
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Please fix the following items
- 29× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/intelligence/templates/intel-page.tpl.php
- > /wp-content/plugins/intelligence/admin/partials/intel-admin-display.php
- > /wp-content/plugins/intelligence/templates/intel-visitor-profile.tpl.php
- > /wp-content/plugins/intelligence/templates/intel-shortcode.tpl.php
- > /wp-content/plugins/intelligence/vendor/google/apiclient/examples/idtoken.php
- > /wp-content/plugins/intelligence/templates/intel-visitor-profile-item.tpl.php
- > /wp-content/plugins/intelligence/public/partials/intel-public-display.php
- > /wp-content/plugins/intelligence/vendor/levelten/intel/realtime/reports/includes/rtd.main-screen.php
- > /wp-content/plugins/intelligence/templates/intel-visitor-location.tpl.php
- > /wp-content/plugins/intelligence/vendor/kint/Kint.class.php
- 4095× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
readdir() expects parameter 1 to be resource, bool given in wp-content/plugins/intelligence/vendor/kint/examples/overview.php on line 8
- > PHP Warning
readdir() expects parameter 1 to be resource, bool given in wp-content/plugins/intelligence/vendor/kint/examples/overview.php on line 8
- > PHP Warning
readdir() expects parameter 1 to be resource, bool given in wp-content/plugins/intelligence/vendor/kint/examples/overview.php on line 8
- > PHP Warning
readdir() expects parameter 1 to be resource, bool given in wp-content/plugins/intelligence/vendor/kint/examples/overview.php on line 8
- > PHP Warning
readdir() expects parameter 1 to be resource, bool given in wp-content/plugins/intelligence/vendor/kint/examples/overview.php on line 8
- > PHP Warning
readdir() expects parameter 1 to be resource, bool given in wp-content/plugins/intelligence/vendor/kint/examples/overview.php on line 8
- > PHP Warning
readdir() expects parameter 1 to be resource, bool given in wp-content/plugins/intelligence/vendor/kint/examples/overview.php on line 8
- > PHP Warning
readdir() expects parameter 1 to be resource, bool given in wp-content/plugins/intelligence/vendor/kint/examples/overview.php on line 8
- > PHP Warning
readdir() expects parameter 1 to be resource, bool given in wp-content/plugins/intelligence/vendor/kint/examples/overview.php on line 8
- > PHP Warning
readdir() expects parameter 1 to be resource, bool given in wp-content/plugins/intelligence/vendor/kint/examples/overview.php on line 8
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Donate link: Invalid URI ("")
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5 in intelligence/assets to your readme.txt
intelligence/intel.php 85% from 13 tests
"Intelligence" version 1.4.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("intelligence.php" instead of "intel.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Almost there! Just fix the following issues
- For security reasons, never distribute binary or executable files with your plugin
- .reg - Registry Data File in Windows
- ☣ wp-content/plugins/intelligence/vendor/kint/scripts/source.reg
- .vbs - VBScript File in Windows
- ☣ wp-content/plugins/intelligence/vendor/kint/scripts/source.vbs
- .reg - Registry Data File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 453 | 11,373 | 27,171 | 71,583 |
JavaScript | 92 | 7,396 | 6,005 | 34,483 |
CSS | 59 | 443 | 187 | 25,599 |
LESS | 10 | 209 | 64 | 1,461 |
Markdown | 12 | 356 | 0 | 1,127 |
JSON | 10 | 15 | 0 | 599 |
HTML | 14 | 21 | 217 | 563 |
SVG | 2 | 0 | 0 | 338 |
Pascal | 6 | 83 | 353 | 332 |
XML | 4 | 28 | 42 | 135 |
YAML | 4 | 20 | 1 | 74 |
Visual Basic | 1 | 14 | 24 | 42 |
INI | 1 | 0 | 1 | 5 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 139)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 12.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 574.00 |
Average method complexity | 2.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 139.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 11 | |
Traits | 1 | |
Classes | 417 | |
▷ Abstract classes | 8 | 1.92% |
▷ Concrete classes | 409 | 98.08% |
▷ Final classes | 2 | 0.49% |
Methods | 3,588 | |
▷ Static methods | 328 | 9.14% |
▷ Public methods | 3,358 | 93.59% |
▷ Protected methods | 92 | 2.56% |
▷ Private methods | 138 | 3.85% |
Functions | 865 | |
▷ Named functions | 830 | 95.95% |
▷ Anonymous functions | 35 | 4.05% |
Constants | 144 | |
▷ Global constants | 55 | 38.19% |
▷ Class constants | 89 | 61.81% |
▷ Public constants | 89 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
20 PNG files occupy 0.30MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/setup_start_action.png | 3.74KB | 2.16KB | ▼ 42.31% |
vendor/TimelineJS/compiled/css/timeline@2x.png | 48.21KB | 22.30KB | ▼ 53.74% |
vendor/TimelineJS/compiled/css/timeline.png | 19.41KB | 9.89KB | ▼ 49.01% |
images/setup_scoring_action.png | 8.50KB | 3.49KB | ▼ 59.00% |
vendor/levelten/intel/images/logo_stacked_light.png | 13.55KB | 6.59KB | ▼ 51.34% |