89% vi-member-content

Code Review | VI: Member Content

WordPress plugin VI: Member Content scored89%from 54 tests.

About plugin

  • Plugin page: vi-member-content
  • Plugin version: 9.1.200310
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 3, 2019
  • Latest release: Apr 4, 2020
  • Number of updates: 11
  • Update frequency: every 13.1 days
  • Top authors: Knighthawk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /422 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Server-side resources used by VI: Member Content
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0142.53 ▲2.62
Dashboard /wp-admin3.32 ▲0.0150.91 ▲3.08
Posts /wp-admin/edit.php3.37 ▲0.0149.66 ▼24.73
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.04 ▼11.84
Media Library /wp-admin/upload.php3.24 ▲0.0134.58 ▼1.52

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for VI: Member Content
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▼0.081.87 ▲0.2144.46 ▲3.76
Dashboard /wp-admin2,206 ▲215.85 ▲0.7495.67 ▼7.6438.66 ▼4.03
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0139.12 ▲2.5634.43 ▼2.94
Add New Post /wp-admin/post-new.php1,424 ▼9017.95 ▲0.20577.53 ▼105.1362.53 ▲9.13
Media Library /wp-admin/upload.php1,388 ▼34.23 ▼0.0796.95 ▼2.6939.92 ▼5.92

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 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
These attributes need your attention:
  • Tags: No valid plugin tags found
  • Donate link: Please fix this invalid URI: ""
  • Requires at least: Version not formatted correctly
You can look at the official readme.txt

vi-member-content/vi_member_content.php 92% from 13 tests

The principal PHP file in "VI: Member Content" v. 9.1.200310 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("vi-member-content.php" instead of "vi_member_content.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected59 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2207859

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.76
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity5.00
▷ Minimum method complexity2.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods3100.00%
▷ Public methods266.67%
▷ Protected methods00.00%
▷ Private methods133.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected