84% wp-jv-post-reading-groups

Code Review | WP JV Post Reading Groups

WordPress plugin WP JV Post Reading Groups scored84%from 54 tests.

About plugin

  • Plugin page: wp-jv-post-readin...
  • Plugin version: 2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.2-5.5.3
  • WordPress version: 6.3.1
  • First release: Aug 16, 2014
  • Latest release: Nov 21, 2020
  • Number of updates: 54
  • Update frequency: every 42.4 days
  • Top authors: janosver (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

500+ active /10,646 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.15MB] [CPU: ▼8.41ms] Passed 4 tests

An overview of server-side resources used by WP JV Post Reading Groups
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1638.08 ▼1.01
Dashboard /wp-admin3.46 ▲0.1144.94 ▼23.88
Posts /wp-admin/edit.php3.57 ▲0.2246.25 ▼2.78
Add New Post /wp-admin/post-new.php6.06 ▲0.1891.54 ▼5.95
Media Library /wp-admin/upload.php3.38 ▲0.1534.93 ▲0.91

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options
wp_jv_prg_rg_settings
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for WP JV Post Reading Groups
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲6113.36 ▼0.904.43 ▲2.5942.99 ▼0.92
Dashboard /wp-admin2,213 ▲285.86 ▲0.01100.60 ▼4.2441.08 ▲4.01
Posts /wp-admin/edit.php2,105 ▲162.03 ▲0.0137.37 ▲0.2131.63 ▼1.86
Add New Post /wp-admin/post-new.php6,216 ▲4,70218.81 ▲1.27853.43 ▲182.5155.16 ▲0.55
Media Library /wp-admin/upload.php1,395 ▲104.24 ▼0.01108.09 ▲10.4646.28 ▲5.51

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-jv-post-reading-groups/uninstall.php
    • > /wp-content/plugins/wp-jv-post-reading-groups/wp-jv-post-reading-groups.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues 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
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
You can look at the official readme.txt

wp-jv-post-reading-groups/wp-jv-post-reading-groups.php Passed 13 tests

The principal PHP file in "WP JV Post Reading Groups" v. 2.4 is loaded by WordPress automatically on each request
100 characters long description:
Grant read-only permission for selected users (with no administrator role) on selected private posts

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin1,033 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP2154218782
PO File24357123
JavaScript2264498
CSS19430

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.62
▷ 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%
Functions31
▷ Named functions31100.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
There were not PNG files found in your plugin