Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▼297.31ms] Passed 4 tests
An overview of server-side resources used by Check Permission Dialogue
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.15 | 62.32 ▼4.45 |
Dashboard /wp-admin | 3.48 ▲0.08 | 36.89 ▼5.62 |
Posts /wp-admin/edit.php | 3.70 ▲0.06 | 37.03 ▼5.04 |
Add New Post /wp-admin/post-new.php | 7.28 ▲0.31 | 84.36 ▼1,174.12 |
Media Library /wp-admin/upload.php | 3.38 ▲0.09 | 29.20 ▲4.82 |
Permission Dialog /wp-admin/options-general.php?page=chk_perm_dialog | 3.31 | 28.54 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Check Permission Dialogue
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,904 ▲159 | 15.66 ▼0.09 | 5.98 ▼0.76 | 2.67 ▲0.45 |
Dashboard /wp-admin | 2,887 ▲33 | 6.01 ▼0.18 | 115.16 ▼17.38 | 156.08 ▼4.56 |
Posts /wp-admin/edit.php | 2,697 ▲6 | 3.23 ▼0.01 | 63.93 ▲0.12 | 144.45 ▼6.27 |
Add New Post /wp-admin/post-new.php | 1,767 ▲106 | 17.44 ▲1.05 | 438.01 ▲33.49 | 155.56 ▲5.59 |
Media Library /wp-admin/upload.php | 1,707 ▲9 | 5.56 ▲0.01 | 142.03 ▲1.36 | 187.77 ▼10.69 |
Permission Dialog /wp-admin/options-general.php?page=chk_perm_dialog | 1,245 | 2.42 | 54.60 | 159.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/check-permission-dialogue/chk-perm-functions.php
- > /wp-content/plugins/check-permission-dialogue/chk-perm-dialog-wp.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% 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
Attributes that need to be fixed:
- Screenshots: These screenshots lack descriptions #2, #3, #4 in check-permission-dialogue/assets to your readme.txt
check-permission-dialogue/chk-perm-dialog-wp.php 85% from 13 tests
The principal PHP file in "Check Permission Dialogue" v. 2022.01 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("check-permission-dialogue.php" instead of "chk-perm-dialog-wp.php")
- Description: The description should be shorter than 140 characters (currently 307 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,118 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 36 | 112 | 651 |
PHP | 2 | 82 | 227 | 463 |
SVG | 2 | 0 | 0 | 4 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin