Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/kpi-integration/api.php+25
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.73MB] [CPU: ▼188.70ms] Passed 4 tests
This is a short check of server-side resources used by Selected Kpi Integration
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.90 ▼0.82 | 6.43 ▼22.57 |
Dashboard /wp-admin | 1.92 ▼1.14 | 6.88 ▼39.57 |
Posts /wp-admin/edit.php | 1.92 ▼1.19 | 7.85 ▼37.58 |
Add New Post /wp-admin/post-new.php | 1.92 ▼3.51 | 7.11 ▼650.75 |
Media Library /wp-admin/upload.php | 1.92 ▼1.08 | 7.04 ▼26.90 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Selected Kpi Integration
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,697 ▲101 | 15.83 ▲0.37 | 4.77 ▼3.80 | 49.28 ▼6.00 |
Dashboard /wp-admin | 2,987 ▲56 | 5.86 ▼0.21 | 136.94 ▼11.10 | 117.09 ▼5.65 |
Posts /wp-admin/edit.php | 2,759 ▲23 | 2.69 ▼0.00 | 63.36 ▼2.51 | 103.66 ▲9.02 |
Add New Post /wp-admin/post-new.php | 1,511 ▼172 | 18.92 ▲0.15 | 385.38 ▲17.17 | 114.24 ▲0.27 |
Media Library /wp-admin/upload.php | 1,827 ▲20 | 5.11 ▲0.10 | 146.06 ▼4.31 | 120.16 ▼2.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/kpi-integration/api.php+25
Trying to access array offset on value of type bool
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
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 Passed 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
No tags were found
kpi-integration/selected-kpi.php 85% from 13 tests
The main file in "Selected Kpi Integration" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("kpi-integration.php" instead of "selected-kpi.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin459 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 80 | 163 | 459 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 4.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 2 | 66.67% |
Methods | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 47.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 52.38% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
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
No PNG files were detected