Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.97ms] Passed 4 tests
A check of server-side resources used by Multi Roles Vendor
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 36.74 ▼9.67 |
Dashboard /wp-admin | 3.31 ▼0.04 | 46.47 ▼14.73 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.11 ▼2.80 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.54 ▼4.67 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.04 ▲2.40 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Multi Roles Vendor: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.20 ▼0.14 | 1.64 ▼0.24 | 35.61 ▼16.73 |
Dashboard /wp-admin | 2,195 ▲15 | 5.58 ▼0.02 | 92.30 ▼5.73 | 38.34 ▼8.36 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▼0.04 | 40.83 ▲4.42 | 35.69 ▲0.02 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.04 ▼0.46 | 647.28 ▼36.51 | 49.79 ▼11.02 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.17 ▼0.04 | 95.07 ▼3.38 | 39.85 ▼0.23 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 50% 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 items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/multi-roles-vendor/public/partials/multi-roles-vendor-public-display.php
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
require_once(): Failed opening required 'wp-load.php' (include_path='.:/usr/share/php') in wp-content/plugins/multi-roles-vendor/admin/multi-roles-vendor-form-submit.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/multi-roles-vendor/admin/partials/multi-roles-vendor-admin-display.php:56
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multi-roles-vendor/multi_roles_vendor.php:14
- > PHP Warning
require_once(wp-load.php): failed to open stream: No such file or directory in wp-content/plugins/multi-roles-vendor/admin/multi-roles-vendor-form-submit.php on line 2
- > PHP Fatal error
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Contributors: Plugin contributors field is missing
multi-roles-vendor/multi_roles_vendor.php 85% from 13 tests
The main file in "Multi Roles Vendor" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("multi-roles-vendor.php" instead of "multi_roles_vendor.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
Success! There were no dangerous files found in this plugin323 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 160 | 557 | 308 |
CSS | 4 | 2 | 14 | 9 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 1.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 2 | 6.90% |
▷ Public methods | 24 | 82.76% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.24% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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