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: ▲1.91MB] [CPU: ▲9.52ms] Passed 4 tests
Analyzing server-side resources used by User Access Manager
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.16 ▲1.70 | 60.78 ▲23.07 |
Dashboard /wp-admin | 5.27 ▲1.97 | 59.94 ▲11.08 |
Posts /wp-admin/edit.php | 5.49 ▲2.13 | 65.08 ▲14.90 |
Add New Post /wp-admin/post-new.php | 7.97 ▲2.08 | 99.11 ▼4.59 |
Media Library /wp-admin/upload.php | 5.11 ▲1.88 | 48.87 ▲16.67 |
About /wp-admin/admin.php?page=uam_about | 5.04 | 335.74 |
Settings /wp-admin/admin.php?page=uam_settings | 5.17 | 46.06 |
Manage user groups /wp-admin/admin.php?page=uam_user_group | 5.27 | 46.42 |
Setup /wp-admin/admin.php?page=uam_setup | 5.06 | 48.83 |
Server storage [IO: ▲0.94MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 168 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_uam_accessgroup_to_object |
wp_uam_accessgroups |
New WordPress options |
---|
widget_uam_login_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
uam_db_version |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for User Access Manager
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲72 | 14.71 ▲0.15 | 1.82 ▲0.10 | 43.81 ▲0.72 |
Dashboard /wp-admin | 2,237 ▲63 | 5.60 ▲0.03 | 87.48 ▲2.32 | 34.96 ▼9.45 |
Posts /wp-admin/edit.php | 2,381 ▲281 | 2.05 ▲0.08 | 36.19 ▼0.91 | 35.66 ▲2.84 |
Add New Post /wp-admin/post-new.php | 6,392 ▲4,866 | 25.86 ▲2.36 | 905.85 ▲216.05 | 44.25 ▼17.27 |
Media Library /wp-admin/upload.php | 1,445 ▲45 | 4.25 ▲0.05 | 98.88 ▲4.74 | 41.43 ▼1.34 |
About /wp-admin/admin.php?page=uam_about | 1,051 | 2.22 | 22.96 | 30.48 |
Settings /wp-admin/admin.php?page=uam_settings | 1,155 | 2.12 | 26.66 | 27.02 |
Manage user groups /wp-admin/admin.php?page=uam_user_group | 1,132 | 2.04 | 24.38 | 27.67 |
Setup /wp-admin/admin.php?page=uam_setup | 920 | 2.04 | 24.24 | 29.37 |
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 7 options in the database
- widget_uam_login_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
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
Please fix the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/user-access-manager/src/View/InfoBox.php
- > /wp-content/plugins/user-access-manager/src/View/SteadyBanner.php
- 122× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'UserAccessManager\\File\\FileProtection' not found in wp-content/plugins/user-access-manager/src/File/ApacheFileProtection.php:28
- > PHP Fatal error
Uncaught Error: Class 'UserAccessManager\\Form\\ValueSetFormElement' not found in wp-content/plugins/user-access-manager/src/Form/MultipleFormElement.php:27
- > PHP Fatal error
Uncaught Error: Class 'UserAccessManager\\Controller\\Backend\\ObjectController' not found in wp-content/plugins/user-access-manager/src/Controller/Backend/DynamicGroupsController.php:28
- > PHP Fatal error
Uncaught Error: Interface 'UserAccessManager\\Setup\\Update\\UpdateInterface' not found in wp-content/plugins/user-access-manager/src/Setup/Database/DatabaseUpdate.php:29
- > PHP Fatal error
Uncaught Error: Class 'UserAccessManager\\Setup\\Database\\DatabaseUpdate' not found in wp-content/plugins/user-access-manager/src/Setup/Update/DatabaseUpdate6.php:28
- > PHP Fatal error
Uncaught Error: Class 'UserAccessManager\\Form\\FormElement' not found in wp-content/plugins/user-access-manager/src/Form/Textarea.php:25
- > PHP Fatal error
Uncaught Error: Class 'UserAccessManager\\Form\\MultipleFormElement' not found in wp-content/plugins/user-access-manager/src/Form/Radio.php:25
- > PHP Fatal error
Uncaught Error: Class 'UserAccessManager\\Controller\\Controller' not found in wp-content/plugins/user-access-manager/src/Controller/Backend/SettingsController.php:36
- > PHP Notice
Undefined variable: controller in wp-content/plugins/user-access-manager/src/View/Login/LoginForm.php on line 19
- > PHP Warning
Use of undefined constant TXT_UAM_DONATE_HEAD - assumed 'TXT_UAM_DONATE_HEAD' (this will throw an Error in a future version of PHP) in wp-content/plugins/user-access-manager/src/View/AdminAbout.php on line 35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: Please delete some tags, you are using 16 tag instead of maximum 10
user-access-manager/user-access-manager.php Passed 13 tests
The main PHP file in "User Access Manager" ver. 2.2.23 adds more information about the plugin and also serves as the entry point for this plugin
61 characters long description:
Manage the access to your posts, pages, categories and files.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected15,078 lines of code in 161 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 151 | 2,737 | 8,272 | 12,068 |
JSON | 4 | 0 | 0 | 2,450 |
JavaScript | 3 | 87 | 7 | 392 |
CSS | 2 | 47 | 10 | 164 |
Markdown | 1 | 1 | 0 | 4 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 9.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 58.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 23 | |
Interfaces | 4 | |
Traits | 6 | |
Classes | 105 | |
▷ Abstract classes | 11 | 10.48% |
▷ Concrete classes | 94 | 89.52% |
▷ Final classes | 0 | 0.00% |
Methods | 890 | |
▷ Static methods | 19 | 2.13% |
▷ Public methods | 718 | 80.67% |
▷ Protected methods | 44 | 4.94% |
▷ Private methods | 128 | 14.38% |
Functions | 31 | |
▷ Named functions | 2 | 6.45% |
▷ Anonymous functions | 29 | 93.55% |
Constants | 363 | |
▷ Global constants | 274 | 75.48% |
▷ Class constants | 89 | 24.52% |
▷ Public constants | 89 | 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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/gfx/icon.png | 2.35KB | 1.34KB | ▼ 42.87% |
assets/gfx/noAccessPic.png | 6.45KB | 4.43KB | ▼ 31.37% |