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: ▲0.04MB] [CPU: ▼2.79ms] Passed 4 tests
This is a short check of server-side resources used by Hide posts for specific roles
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 43.46 ▲3.88 |
Dashboard /wp-admin | 3.36 ▲0.01 | 49.81 ▼13.11 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 47.46 ▼5.15 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 99.40 ▲5.41 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.96 ▲3.21 |
Hide posts /wp-admin/tools.php?page=hpfsr-settings | 3.23 | 33.70 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Hide posts for specific roles
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.21 ▼0.03 | 1.82 ▲0.17 | 47.04 ▲3.07 |
Dashboard /wp-admin | 2,199 ▲25 | 5.62 ▼0.03 | 90.35 ▲0.77 | 40.49 ▼0.56 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▼0.00 | 37.20 ▼4.63 | 33.58 ▼6.18 |
Add New Post /wp-admin/post-new.php | 1,529 ▼6 | 23.59 ▲5.29 | 680.53 ▲5.97 | 57.13 ▼11.32 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.29 ▲0.09 | 122.27 ▲15.30 | 54.89 ▲5.54 |
Hide posts /wp-admin/tools.php?page=hpfsr-settings | 1,069 | 2.05 | 47.02 | 38.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 15 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=hpfsr-settings
- > Notice in wp-content/plugins/hide-posts-for-specific-roles/classes/class-hide-posts-for-specific-roles.php+135
Undefined index: post_status
- > GET request to /wp-admin/tools.php?page=hpfsr-settings
- > Notice in wp-content/plugins/hide-posts-for-specific-roles/classes/class-hide-posts-for-specific-roles.php+279
Undefined index:
- > GET request to /wp-admin/tools.php?page=hpfsr-settings
- > Notice in wp-content/plugins/hide-posts-for-specific-roles/classes/class-hide-posts-for-specific-roles.php+279
Trying to get property 'label' of non-object
- > GET request to /wp-admin/tools.php?page=hpfsr-settings
- > Notice in wp-content/plugins/hide-posts-for-specific-roles/classes/class-hide-posts-for-specific-roles.php+299
Undefined index: edit_posts
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (Plugin setting page), #2 (Plugin setting page, media view)
hide-posts-for-specific-roles/hide-posts-for-specific-roles.php 92% from 13 tests
The entry point to "Hide posts for specific roles" version 1.1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin326 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 52 | 131 | 207 |
JavaScript | 1 | 15 | 13 | 54 |
PO File | 1 | 67 | 382 | 53 |
CSS | 1 | 5 | 0 | 12 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 33.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 3.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 11 | |
▷ Static methods | 5 | 45.45% |
▷ Public methods | 6 | 54.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 45.45% |
Functions | 3 | |
▷ Named functions | 3 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 compressed PNG files occupy 0.04MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 20.05KB | 20.53KB | 0.00% |
screenshot-1.png | 19.22KB | 19.41KB | 0.00% |