89% very-simple-knowledge-base

Code Review | VS Knowledge Base

WordPress plugin VS Knowledge Base scored89%from 54 tests.

About plugin

  • Plugin page: very-simple-knowl...
  • Plugin version: 6.9
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Aug 29, 2014
  • Latest release: Oct 11, 2023
  • Number of updates: 174
  • Update frequency: every 19.1 days
  • Top authors: Guido07111975 (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

500+ active /34,189 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.71ms] Passed 4 tests

An overview of server-side resources used by VS Knowledge Base
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0538.76 ▼5.42
Dashboard /wp-admin3.36 ▲0.0550.27 ▼2.99
Posts /wp-admin/edit.php3.41 ▲0.0553.87 ▲1.15
Add New Post /wp-admin/post-new.php5.94 ▲0.0597.48 ▼7.37
Media Library /wp-admin/upload.php3.28 ▲0.0540.04 ▼3.04

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
Just a few items left to fix
  • There were 1 file (4.00KB) illegally modified outside of "wp-content/plugins/very-simple-knowledge-base/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
widget_vskb_widget
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for VS Knowledge Base
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲3113.18 ▼1.111.81 ▼0.3740.76 ▼6.03
Dashboard /wp-admin2,224 ▲184.79 ▼0.10113.75 ▲9.1043.77 ▼1.69
Posts /wp-admin/edit.php2,103 ▲32.03 ▲0.0238.58 ▼2.1136.33 ▼1.52
Add New Post /wp-admin/post-new.php1,548 ▲1223.28 ▼0.02666.72 ▲5.1752.04 ▼19.86
Media Library /wp-admin/upload.php1,403 ▲34.27 ▲0.14108.16 ▼10.2445.82 ▼4.28

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: wiki, faq, simple, frequently asked questions, knowledge base

very-simple-knowledge-base/vskb.php 85% from 13 tests

The primary PHP file in "VS Knowledge Base" version 6.9 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("very-simple-knowledge-base.php" instead of "vskb.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 152 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin291 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP51548245
CSS2202246

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity4.75
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected