Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼5.88ms] Passed 4 tests
An overview of server-side resources used by User Groups
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 40.47 ▼2.84 |
Dashboard /wp-admin | 3.45 ▲0.15 | 48.39 ▼4.34 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 47.26 ▲0.89 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 83.07 ▼12.73 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 34.72 ▼3.61 |
User Groups /wp-admin/edit-tags.php?taxonomy=user-group | 3.37 | 36.25 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for User Groups
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.28 ▼0.07 | 1.65 ▲0.03 | 43.68 ▲0.11 |
Dashboard /wp-admin | 2,196 ▲16 | 5.51 ▼0.14 | 83.69 ▼15.38 | 38.14 ▼7.75 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▼0.03 | 31.89 ▼3.79 | 32.14 ▼4.45 |
Add New Post /wp-admin/post-new.php | 1,531 ▼4 | 22.98 ▲4.87 | 683.00 ▲37.17 | 51.94 ▼12.27 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.23 ▼0.03 | 103.02 ▼13.83 | 45.37 ▼0.45 |
User Groups /wp-admin/edit-tags.php?taxonomy=user-group | 1,277 | 2.29 | 40.58 | 31.53 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-groups/user-groups.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (The User Groups screen is just like the Categories screen, but with a color selector!), #2 (View all users in a group, as well as the group description), #3 (Edit the Group once it is created), #4 (How the user groups look in the User Profile screen)
user-groups/user-groups.php 85% from 13 tests
The principal PHP file in "User Groups" v. 1.3.1 is loaded by WordPress automatically on each request
You should first fix the following items:
- Domain Path: The domain path should use only dashes and lowercase characters ("languages")
- Domain Path: Please prefix the domain path with a forward slash character ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected611 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 157 | 38 | 611 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 92.00 |
▷ Minimum class complexity | 92.00 |
▷ Maximum class complexity | 92.00 |
Average method complexity | 3.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 6 | 18.75% |
▷ Public methods | 32 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin