94% show-content-to-only-guest

Code Review | Show content to only guest

WordPress plugin Show content to only guest scored 94% from 54 tests.

About plugin

  • Plugin page: show-content-to-o...
  • Plugin version: 1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.1.1
  • WordPress version: 5.8.1
  • First release: Apr 7, 2019
  • Latest release: Apr 7, 2019
  • Number of updates: 13
  • Update frequency: every 0.1 days
  • Top authors: MrIbrahim (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 332 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.00MB] [CPU: ▼170.91ms] Passed 4 tests

A check of server-side resources used by Show content to only guest
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0042.49 ▲2.16
Dashboard /wp-admin3.07 ▲0.0145.57 ▲3.88
Posts /wp-admin/edit.php3.12 ▲0.0050.19 ▼3.20
Add New Post /wp-admin/post-new.php5.42 ▼0.0290.18 ▼681.30
Media Library /wp-admin/upload.php3.01 ▲0.0036.75 ▼1.30

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Show content to only guest
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.79 ▼0.168.14 ▼0.8953.99 ▲4.26
Dashboard /wp-admin2,970 ▲395.91 ▼0.08137.85 ▼1.24119.18 ▲3.28
Posts /wp-admin/edit.php2,739 ▼02.68 ▼0.0168.71 ▼7.4494.16 ▼1.35
Add New Post /wp-admin/post-new.php1,683 ▼018.78 ▲2.19409.65 ▲3.03114.68 ▲1.41
Media Library /wp-admin/upload.php1,807 ▼05.02 ▼0.03167.77 ▲12.10133.37 ▼5.54

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/show-content-to-only-guest/show-content-to-only-guest.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: show to guest, content, guest, only guest

show-content-to-only-guest/show-content-to-only-guest.php Passed 13 tests

The main file in "Show content to only guest" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
36 characters long description:
Show Content to only guest/visitors.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin7 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.33
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin