Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼4.74ms] Passed 4 tests
This is a short check of server-side resources used by Role Based Storage Limiter
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 41.24 ▼2.16 |
Dashboard /wp-admin | 3.38 ▲0.08 | 51.98 ▲0.97 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 52.67 ▼0.33 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 87.54 ▼17.45 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 41.52 ▲8.85 |
Storage Limiter /wp-admin/options-general.php?page=role-based-storage-limiter | 3.28 | 34.47 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
role_based_storage_limiter |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Role Based Storage Limiter
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,880 ▲119 | 13.50 ▼0.70 | 8.23 ▲6.54 | 44.08 ▲1.39 |
Dashboard /wp-admin | 2,197 ▲17 | 5.62 ▼0.03 | 87.29 ▼4.19 | 39.42 ▼4.36 |
Posts /wp-admin/edit.php | 2,108 ▲5 | 2.02 ▲0.08 | 35.10 ▼1.36 | 35.20 ▼4.07 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 22.95 ▼0.80 | 685.77 ▼12.02 | 58.34 ▲3.32 |
Media Library /wp-admin/upload.php | 1,402 ▲2 | 4.21 ▲0.01 | 99.38 ▼6.00 | 43.14 ▼5.49 |
Storage Limiter /wp-admin/options-general.php?page=role-based-storage-limiter | 965 | 2.12 | 23.05 | 29.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/role-based-storage-limiter/public/partials/role-based-storage-limiter-public-display.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/role-based-storage-limiter/admin/partials/role-based-storage-limiter-admin-display.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== role-based-storage-limiter ===
)
role-based-storage-limiter/role-based-storage-limiter.php Passed 13 tests
The main PHP file in "Role Based Storage Limiter" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
57 characters long description:
Sets a storage limit for each member based on their role.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected627 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 184 | 573 | 319 |
CSS | 3 | 49 | 80 | 302 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 4.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 32 | |
▷ Static methods | 2 | 6.25% |
▷ Public methods | 27 | 84.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.62% |
Functions | 3 | |
▷ Named functions | 3 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected