Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.10ms] Passed 4 tests
This is a short check of server-side resources used by CellarWeb User Profile Access Control
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.75 ▼9.17 |
Dashboard /wp-admin | 3.32 ▲0.01 | 45.18 ▼12.25 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.74 ▲3.27 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 86.92 ▼4.17 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 31.50 ▼2.80 |
CellarWeb User Profile Access Control /wp-admin/options-general.php?page=cellarweb-user-profile-access-control | 3.21 | 29.70 |
Server storage [IO: ▲7.23MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by CellarWeb User Profile Access Control
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲96 | 13.58 ▼0.66 | 1.86 ▼0.36 | 39.46 ▼6.69 |
Dashboard /wp-admin | 2,212 ▲24 | 5.87 ▲0.95 | 105.97 ▼9.67 | 39.41 ▼10.27 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.04 ▲0.05 | 39.97 ▲5.83 | 33.42 ▼3.02 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.43 ▲0.18 | 653.92 ▼3.40 | 57.12 ▲3.42 |
Media Library /wp-admin/upload.php | 1,394 ▲9 | 4.21 ▲0.06 | 95.56 ▼5.61 | 37.66 ▼9.61 |
CellarWeb User Profile Access Control /wp-admin/options-general.php?page=cellarweb-user-profile-access-control | 1,013 | 2.15 | 25.83 | 44.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/cellarweb-user-profile-access-control/css/custom_login_page.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
1 plugin tags: user profile access control
cellarweb-user-profile-access-control/cellarweb-user-profile-access-control.php 85% from 13 tests
The main file in "CellarWeb User Profile Access Control" v. 1.01 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("4.9.6" instead of "4.9")
- Description: Please don't use more than 140 characters for the plugin description (currently 269 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin608 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 67 | 124 | 396 |
CSS | 2 | 29 | 8 | 207 |
XML | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 3.09MB with 2.77MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-1000x200.png | 604.47KB | 82.05KB | ▼ 86.43% |
assets/cellarweb-logo-2022.png | 954.49KB | 191.67KB | ▼ 79.92% |
css/login/logo-signin.png | 69.54KB | 4.71KB | ▼ 93.22% |
assets/icon-256x256.png | 572.97KB | 35.53KB | ▼ 93.80% |
assets/icon-128x128.png | 222.00KB | 11.66KB | ▼ 94.75% |