Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼10.21ms] Passed 4 tests
A check of server-side resources used by Permissions Plus
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.33 ▼1.31 |
Dashboard /wp-admin | 3.31 ▼0.04 | 43.80 ▼13.48 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.08 ▼0.50 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 79.78 ▼25.55 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.35 ▲2.71 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Permissions Plus
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.22 ▼1.13 | 1.84 ▲0.07 | 37.86 ▼3.18 |
Dashboard /wp-admin | 2,209 ▲20 | 5.89 ▲0.97 | 110.06 ▲1.37 | 38.94 ▼4.04 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.14 ▲0.13 | 38.71 ▼0.50 | 34.74 ▼0.89 |
Add New Post /wp-admin/post-new.php | 1,546 ▲17 | 23.12 ▲4.81 | 678.21 ▲41.27 | 64.80 ▲6.65 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.12 ▼0.08 | 107.72 ▲3.97 | 45.17 ▲2.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
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 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: admin, custom, roles, permissions, menus
permissionsplus/digitalbodhi-permissionsplus.php 77% from 13 tests
"Permissions Plus" version 1.0.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:
- Text Domain: Please use dashes and lowercase characters for text domains
- Main file name: It is recommended to name the main PHP file as the plugin slug ("permissionsplus.php" instead of "digitalbodhi-permissionsplus.php")
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin1,359 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 233 | 969 | 1,308 |
JSON | 1 | 0 | 0 | 39 |
JavaScript | 1 | 1 | 3 | 8 |
CSS | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 23.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 3.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 2 | 25.00% |
▷ Concrete classes | 6 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 80 | |
▷ Static methods | 54 | 67.50% |
▷ Public methods | 63 | 78.75% |
▷ Protected methods | 7 | 8.75% |
▷ Private methods | 10 | 12.50% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 30 | |
▷ Global constants | 16 | 53.33% |
▷ Class constants | 14 | 46.67% |
▷ Public constants | 14 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin