83% cellarweb-user-profile-access-control

Code Review | CellarWeb User Profile Access Control

WordPress plugin CellarWeb User Profile Access Control scored 83% from 54 tests.

About plugin

  • Plugin page: cellarweb-user-pr...
  • Plugin version: 1.01
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3
  • WordPress version: 6.3.1
  • First release: Mar 28, 2022
  • Latest release: Aug 11, 2023
  • Number of updates: 7
  • Update frequency: every 71.4 days
  • Top authors: rhellewell@gmail.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 616 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.75 ▼9.17
Dashboard /wp-admin3.32 ▲0.0145.18 ▼12.25
Posts /wp-admin/edit.php3.37 ▲0.0147.74 ▲3.27
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.92 ▼4.17
Media Library /wp-admin/upload.php3.24 ▲0.0131.50 ▼2.80
CellarWeb User Profile Access Control /wp-admin/options-general.php?page=cellarweb-user-profile-access-control3.2129.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲9613.58 ▼0.661.86 ▼0.3639.46 ▼6.69
Dashboard /wp-admin2,212 ▲245.87 ▲0.95105.97 ▼9.6739.41 ▼10.27
Posts /wp-admin/edit.php2,095 ▲62.04 ▲0.0539.97 ▲5.8333.42 ▼3.02
Add New Post /wp-admin/post-new.php1,533 ▲1423.43 ▲0.18653.92 ▼3.4057.12 ▲3.42
Media Library /wp-admin/upload.php1,394 ▲94.21 ▲0.0695.56 ▼5.6137.66 ▼9.61
CellarWeb User Profile Access Control /wp-admin/options-general.php?page=cellarweb-user-profile-access-control1,0132.1525.8344.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:
LanguageFilesBlank linesComment linesLines of code
PHP267124396
CSS2298207
XML1005

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 code0.32
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/banner-1000x200.png604.47KB82.05KB▼ 86.43%
assets/cellarweb-logo-2022.png954.49KB191.67KB▼ 79.92%
css/login/logo-signin.png69.54KB4.71KB▼ 93.22%
assets/icon-256x256.png572.97KB35.53KB▼ 93.80%
assets/icon-128x128.png222.00KB11.66KB▼ 94.75%