90% content-visibility-specific-users

Code Review | Content Visibility Specific Users

WordPress plugin Content Visibility Specific Users scored90%from 54 tests.

About plugin

  • Plugin page: content-visibilit...
  • Plugin version: 0.1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Jul 20, 2021
  • Latest release: Dec 13, 2022
  • Number of updates: 3
  • Update frequency: every 171.7 days
  • Top authors: iamfriendly (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /858 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.38ms] Passed 4 tests

This is a short check of server-side resources used by Content Visibility Specific Users
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.81 ▲1.47
Dashboard /wp-admin3.33 ▼0.0252.93 ▼14.95
Posts /wp-admin/edit.php3.38 ▲0.0254.24 ▲0.15
Add New Post /wp-admin/post-new.php5.91 ▲0.0288.26 ▼15.35
Media Library /wp-admin/upload.php3.25 ▲0.0237.60 ▼3.36

Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Content Visibility Specific Users
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.38 ▲0.181.81 ▲0.1344.77 ▲1.34
Dashboard /wp-admin2,198 ▲245.61 ▼0.0593.58 ▲0.8943.85 ▼1.46
Posts /wp-admin/edit.php2,097 ▼01.94 ▼0.0435.02 ▼6.1736.65 ▼4.48
Add New Post /wp-admin/post-new.php1,531 ▲523.29 ▲0.16673.99 ▼23.3856.92 ▲1.98
Media Library /wp-admin/upload.php1,403 ▲34.18 ▲0.02100.30 ▼14.5744.06 ▼9.20

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: visibility, content, contentvisibility, block, users...

content-visibility-specific-users/content-visibility-specific-users.php Passed 13 tests

The main PHP script in "Content Visibility Specific Users" version 0.1.1 is automatically included on every request by WordPress
71 characters long description:
[Content Visibility Add-On] Show or hide your blocks to specific users.

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
Success! There were no dangerous files found in this plugin1,197 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript12262361,125
PHP3345372
CSS2420

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin