Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.51ms] Passed 4 tests
Server-side resources used by DD Roles
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 36.78 ▼3.26 |
Dashboard /wp-admin | 3.34 ▲0.04 | 46.95 ▼4.45 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 47.37 ▼2.24 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 84.42 ▼20.08 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 36.41 ▲5.43 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for DD Roles
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.46 ▼0.76 | 1.61 ▼0.59 | 39.26 ▼7.98 |
Dashboard /wp-admin | 2,210 ▲19 | 5.12 ▼0.74 | 110.59 ▲6.76 | 37.57 ▼6.10 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.44 ▲0.43 | 33.88 ▼3.43 | 29.02 ▼6.71 |
Add New Post /wp-admin/post-new.php | 1,520 ▲6 | 23.46 ▲5.89 | 609.45 ▼62.46 | 50.89 ▼4.12 |
Media Library /wp-admin/upload.php | 1,386 ▲7 | 4.49 ▲0.29 | 101.60 ▲0.83 | 42.91 ▼0.98 |
DD Roles /wp-admin/dd-roles.php | 26 | 0.44 | 0.11 | 18.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/dd-roles/views/widgets/donate.php
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'dd_roles' not found in wp-content/plugins/dd-roles/views/widgets/migrate_users.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/dd-roles/views/widgets/manage_capabilities.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_role() in wp-content/plugins/dd-roles/dd_roles.php:438
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/dd-roles/views/widgets/create_role.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/dd-roles/views/widgets/create_role.php:7
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- > GET request to /wp-admin/dd-roles.php
- > Network (severe)
wp-admin/dd-roles.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 21 tag instead of maximum 10
dd-roles/dd_roles.php 92% from 13 tests
Analyzing the main PHP file in "DD Roles" version 4.1
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("dd-roles.php" instead of "dd_roles.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,784 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 81 | 3 | 966 |
PHP | 6 | 95 | 62 | 646 |
JavaScript | 3 | 21 | 1 | 125 |
SVG | 2 | 0 | 0 | 47 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 48.00 |
▷ Minimum class complexity | 48.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 29 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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
PNG images were not found in this plugin