Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- The plugin cannot be installed
- > Warning in wp-content/plugins/who-can-see/filters/ShowFilter.php+4
require_once(/../RoleManager.php): failed to open stream: No such file or directory
Server metrics [RAM: ▼0.01MB] [CPU: ▼13.64ms] Passed 4 tests
Analyzing server-side resources used by Who Can See
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.54 ▼5.38 |
Dashboard /wp-admin | 3.31 ▼0.04 | 48.29 ▼19.94 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.78 ▼4.37 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.87 ▼22.00 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 31.23 ▼7.25 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Who Can See
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.24 ▼0.31 | 1.67 ▼0.14 | 41.00 ▼3.63 |
Dashboard /wp-admin | 2,195 ▲15 | 5.53 ▼0.02 | 90.20 ▲0.11 | 37.04 ▼6.84 |
Posts /wp-admin/edit.php | 2,097 ▼0 | 2.16 ▲0.18 | 39.33 ▲2.19 | 34.74 ▼1.80 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.11 ▼0.07 | 578.55 ▼83.95 | 52.56 ▼8.77 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.23 ▲0.03 | 109.52 ▲2.41 | 49.95 ▲2.39 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
require_once(/../RoleManager.php): failed to open stream: No such file or directory in wp-content/plugins/who-can-see/filters/ShowFilter.php on line 4
- > PHP Fatal error
require_once(): Failed opening required '/../RoleManager.php' (include_path='.:/usr/share/php') in wp-content/plugins/who-can-see/filters/HideFilter.php on line 4
- > PHP Warning
require_once(/../RoleManager.php): failed to open stream: No such file or directory in wp-content/plugins/who-can-see/filters/ShowFilter.php on line 4
- > PHP Warning
require_once(/../RoleManager.php): failed to open stream: No such file or directory in wp-content/plugins/who-can-see/filters/HideFilter.php on line 4
- > PHP Warning
require_once(/../RoleManager.php): failed to open stream: No such file or directory in wp-content/plugins/who-can-see/filters/ShowFilter.php on line 4
- > PHP Fatal error
require_once(): Failed opening required '/../RoleManager.php' (include_path='.:/usr/share/php') in wp-content/plugins/who-can-see/filters/ShowFilter.php on line 4
- > PHP Fatal error
require_once(): Failed opening required '/../RoleManager.php' (include_path='.:/usr/share/php') in wp-content/plugins/who-can-see/filters/ShowFilter.php on line 4
- > PHP Fatal error
require_once(): Failed opening required '/../RoleManager.php' (include_path='.:/usr/share/php') in wp-content/plugins/who-can-see/filters/ShowFilter.php on line 4
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (This screenshot shows the button to be used to.), #2 (How the page will be displayed for the selected roles.)
who-can-see/who-can-see.php Passed 13 tests
Analyzing the main PHP file in "Who Can See" version 1.0.0
48 characters long description:
This plugin controls the parts that can be seen.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin184 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 32 | 79 | 169 |
JavaScript | 1 | 0 | 0 | 12 |
CSS | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 3.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 1 | 16.67% |
▷ Concrete classes | 5 | 83.33% |
▷ Final classes | 1 | 20.00% |
Methods | 15 | |
▷ Static methods | 5 | 33.33% |
▷ Public methods | 14 | 93.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 6.67% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.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
4 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot2.png | 2.94KB | 1.95KB | ▼ 33.81% |
editor/icon.png | 0.20KB | 0.16KB | ▼ 22.22% |
screenshot1.png | 1.41KB | 1.06KB | ▼ 25.21% |
screenshot3.png | 44.55KB | 24.13KB | ▼ 45.82% |