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
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼4.74ms] Passed 4 tests
Analyzing server-side resources used by User Role for Flamingo
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 37.18 ▼3.10 |
Dashboard /wp-admin | 3.40 ▲0.09 | 47.88 ▼3.12 |
Posts /wp-admin/edit.php | 3.52 ▲0.15 | 52.29 ▲2.30 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 84.61 ▼15.04 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 36.63 ▲3.36 |
Flamingo User Role /wp-admin/users.php?page=ur4f | 3.37 | 32.06 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
ur4f_version |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for User Role for Flamingo
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲57 | 14.37 ▲0.05 | 1.71 ▲0.00 | 37.03 ▼6.68 |
Dashboard /wp-admin | 2,196 ▲16 | 5.59 ▼0.06 | 94.75 ▲1.55 | 42.51 ▼3.29 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.00 ▲0.05 | 38.55 ▼1.49 | 35.02 ▼1.10 |
Add New Post /wp-admin/post-new.php | 1,529 ▲4 | 22.86 ▼0.80 | 666.37 ▲69.57 | 60.85 ▲13.04 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.28 ▲0.03 | 95.94 ▲2.46 | 40.31 ▼1.60 |
Flamingo User Role /wp-admin/users.php?page=ur4f | 936 | 2.00 | 26.28 | 29.87 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 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: forms, user role, flamingo, contact form 7, capabilities
user-role-for-flamingo/user-role-for-flamingo.php Passed 13 tests
The main file in "User Role for Flamingo" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
99 characters long description:
Configure special user role to access the flamingo contacts and messages wihtout admin permissions.
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
No dangerous file extensions were detected541 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 70 | 240 | 374 |
PO File | 1 | 33 | 41 | 167 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 3.20 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 3 | 12.50% |
▷ Public methods | 19 | 79.17% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 20.83% |
Functions | 5 | |
▷ Named functions | 2 | 40.00% |
▷ Anonymous functions | 3 | 60.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 images were found in this plugin