Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.01ms] Passed 4 tests
A check of server-side resources used by Role Based Access Manager: Media Protector
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.58 ▲0.55 |
Dashboard /wp-admin | 3.31 ▲0.01 | 43.49 ▼3.72 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 44.01 ▼2.14 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 78.68 ▼8.41 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 32.51 ▼1.76 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
These are issues you should consider
- You have illegally modified 1 file (0.79KB) outside of "wp-content/plugins/rbam-media/" and "wp-content/uploads/"
- (modified) .htaccess
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Role Based Access Manager: Media Protector
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.51 ▼1.05 | 4.33 ▲2.52 | 41.89 ▼3.07 |
Dashboard /wp-admin | 2,206 ▲18 | 5.08 ▼0.79 | 107.16 ▲6.15 | 37.99 ▼5.33 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.00 ▲0.01 | 39.72 ▼1.62 | 35.35 ▼2.35 |
Add New Post /wp-admin/post-new.php | 1,519 ▼0 | 23.12 ▼0.25 | 624.85 ▼58.73 | 57.04 ▼1.75 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.19 ▼0.05 | 96.47 ▼5.67 | 43.81 ▼4.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test
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 96% from 29 tests
readme.txt Passed 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
4 plugin tags: security, media, attachments, roles
rbam-media/rbam-media.php 92% from 13 tests
The main PHP script in "Role Based Access Manager: Media Protector" version 1.1.3 is automatically included on every request by WordPress
Please take the time to fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin471 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 81 | 148 | 403 |
JavaScript | 1 | 14 | 5 | 68 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 22.67 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 4.61 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 35.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 65.00% |
Functions | 9 | |
▷ Named functions | 7 | 77.78% |
▷ Anonymous functions | 2 | 22.22% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 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
There are no PNG files in this plugin