Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼10.85MB] [CPU: ▼2,205,030.41ms] Passed 4 tests
This is a short check of server-side resources used by User Specific Content
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.05 | 34.36 ▼13.26 |
Dashboard /wp-admin | 3.57 ▼42.59 | 50.02 ▼8,820,058.83 |
Posts /wp-admin/edit.php | 3.69 ▲0.28 | 52.59 ▲4.30 |
Add New Post /wp-admin/post-new.php | 4.86 ▼1.07 | 51.51 ▼49.02 |
Media Library /wp-admin/upload.php | 3.49 ▲0.22 | 38.37 ▼0.51 |
User Specific Content /wp-admin/users.php?page=User_specific_content_panel | 3.44 | 34.95 |
Server storage [IO: ▲0.07MB] [DB: ▲0.04MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
U_S_C |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by User Specific Content
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.32 ▼0.06 | 1.94 ▲0.11 | 41.61 ▼3.07 |
Dashboard /wp-admin | 2,199 ▲31 | 5.61 ▲0.04 | 84.83 ▼3.09 | 42.88 ▼0.35 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.99 ▲0.02 | 38.52 ▼0.46 | 36.60 ▲2.05 |
Add New Post /wp-admin/post-new.php | 6,298 ▲4,770 | 20.09 ▼2.83 | 909.77 ▲239.01 | 74.36 ▲9.82 |
Media Library /wp-admin/upload.php | 1,407 ▲13 | 4.16 ▼0.09 | 97.83 ▼0.97 | 44.16 ▲3.22 |
User Specific Content /wp-admin/users.php?page=User_specific_content_panel | 1,639 | 2.52 | 45.12 | 60.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.04MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- widget_theysaidso_widget
- U_S_C
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/users.php?page=User_specific_content_panel
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/users.php?page=User_specific_content_panel
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- 24 occurences, only the last one shown
- > GET request to /wp-admin/users.php?page=User_specific_content_panel
- > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
- 24 occurences, only the last one shown
- > GET request to /wp-admin/users.php?page=User_specific_content_panel
- > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/user-specific-content/User-Specific-Content.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'SimplePanel' not found in wp-content/plugins/user-specific-content/panel/User_specific_content_panel.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
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: user content, user specific content, content by role, content by user
user-specific-content/User-Specific-Content.php 92% from 13 tests
The main PHP file in "User Specific Content" ver. 1.0.6 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("user-specific-content.php" instead of "User-Specific-Content.php")
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
Success! There were no dangerous files found in this plugin1,146 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 151 | 638 | 1,146 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 58.33 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 98.00 |
Average method complexity | 4.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 56 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 56 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected