Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼264.49ms] Passed 4 tests
This is a short check of server-side resources used by Application Insights Dashboard
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▲0.20 | 36.77 ▲12.67 |
Dashboard /wp-admin | 3.16 ▲0.10 | 45.92 ▼4.11 |
Posts /wp-admin/edit.php | 3.20 ▲0.09 | 38.82 ▼8.87 |
Add New Post /wp-admin/post-new.php | 5.51 ▲0.08 | 93.91 ▼1,036.13 |
Media Library /wp-admin/upload.php | 3.09 ▲0.08 | 30.06 ▼8.85 |
Application Insights /wp-admin/options-general.php?page=appinsights | 3.23 | 31.72 |
Server storage [IO: ▲0.87MB] [DB: ▲0.72MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 1 new option
New WordPress options |
---|
appinsights_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Application Insights Dashboard
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,788 ▲182 | 16.52 ▲0.62 | 7.59 ▼2.00 | 52.87 ▲0.63 |
Dashboard /wp-admin | 3,048 ▲198 | 6.95 ▲1.08 | 140.31 ▼0.57 | 98.54 ▼7.70 |
Posts /wp-admin/edit.php | 2,711 ▲8 | 2.70 ▲0.01 | 60.81 ▼10.53 | 80.72 ▼20.20 |
Add New Post /wp-admin/post-new.php | 1,591 ▼445 | 21.62 ▲3.55 | 271.88 ▼79.28 | 104.56 ▲3.17 |
Media Library /wp-admin/upload.php | 1,777 ▲5 | 5.00 ▼0.02 | 138.84 ▼9.03 | 106.69 ▼5.82 |
Application Insights /wp-admin/options-general.php?page=appinsights | 1,104 | 2.56 | 54.26 | 74.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.72MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=appinsights
- > Notice in wp-content/plugins/application-insights-dashboard/admin/appinsights-settings.php+40
Undefined index: code
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/application-insights-dashboard/appinsights.php
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/application-insights-dashboard/config.php:40
- > PHP Notice
Trying to get property 'options' of non-object in wp-content/plugins/application-insights-dashboard/appinsights-api.php on line 24
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/application-insights-dashboard/appinsights-api.php:25
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/application-insights-dashboard/appinsights-api.php on line 24
- > PHP Notice
Trying to get property 'options' of non-object in wp-content/plugins/application-insights-dashboard/appinsights-api.php on line 23
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/application-insights-dashboard/appinsights-api.php on line 23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: microsoft azure, application insights
application-insights-dashboard/appinsights.php 85% from 13 tests
The main PHP script in "Application Insights Dashboard" version 1.0a is automatically included on every request by WordPress
It is important to fix the following:
- Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "1.0a")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("application-insights-dashboard.php" instead of "appinsights.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin13,661 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 10 | 3,522 | 10,086 | 11,947 |
PHP | 10 | 207 | 29 | 1,241 |
CSS | 2 | 181 | 152 | 473 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 4.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 5 | 12.20% |
▷ Public methods | 32 | 78.05% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 21.95% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 6 | 100.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin