10% team-vs

Code Review | VS Team - Team Showcase WordPress

WordPress plugin VS Team - Team Showcase WordPress scored 10% from 54 tests.

About plugin

  • Plugin page: team-vs
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5+
  • WordPress version: 5.8.1
  • First release: Dec 2, 2020
  • Latest release: Dec 2, 2020
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: radontheme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 154 total downloads

Benchmarks

Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • Install procedure had errors
    • > Error in wp-content/plugins/team-vs/team-vs.php+35
    Uncaught Error: Class 'vcore\base\Vsactivate' not found in wp-content/plugins/team-vs/team-vs.php:35
    Stack trace:
    #0 wp-includes/class-wp-hook.php(303): Team_VS_activation()
    #1 wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
    #2 wp-includes/plugin.php(470): WP_Hook->do_action()
    #3 wp-admin/includes/plugin.php(698): do_action()

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

Server-side resources used by VS Team - Team Showcase WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.83 ▲0.1236.86 ▲16.11
Dashboard /wp-admin3.06 ▲0.0050.52 ▲6.56
Posts /wp-admin/edit.php3.11 ▲0.0046.92 ▲1.09
Add New Post /wp-admin/post-new.php5.42 ▼0.0294.44 ▼581.94
Media Library /wp-admin/upload.php3.00 ▲0.0037.83 ▲3.30

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 56 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for VS Team - Team Showcase WordPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.84 ▲0.129.59 ▼1.7048.96 ▼0.57
Dashboard /wp-admin2,970 ▲365.87 ▼0.29156.93 ▼19.74106.87 ▼14.40
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0074.41 ▼0.7187.08 ▼5.14
Add New Post /wp-admin/post-new.php1,683 ▲6818.79 ▼2.52421.19 ▲110.59111.28 ▲5.81
Media Library /wp-admin/upload.php1,807 ▼35.04 ▲0.02158.52 ▲6.26119.29 ▼0.47

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 9× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/team-vs/vcore/pages/vshortcodequery.php
    • > /wp-content/plugins/team-vs/vcore/base/vshortcodecpt.php
    • > /wp-content/plugins/team-vs/vcore/base/vsactivate.php
    • > /wp-content/plugins/team-vs/vcore/base/basecontroller.php
    • > /wp-content/plugins/team-vs/vcore/base/vsmemberslug.php
    • > /wp-content/plugins/team-vs/team-vs.php
    • > /wp-content/plugins/team-vs/vcore/base/vsteamcpt.php
    • > /wp-content/plugins/team-vs/vcore/vsinit.php
    • > /wp-content/plugins/team-vs/vcore/base/vsenqueue.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 25 tag instead of maximum 10
Please take inspiration from this readme.txt

team-vs/team-vs.php 92% from 13 tests

The main PHP script in "VS Team - Team Showcase WordPress" version 1.0 is automatically included on every request by WordPress
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 166 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected53,736 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
SVG502051,779
PHP222942761,083
CSS315314850
JSON20022
JavaScript20102

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity10.21
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.93
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods68
▷ Static methods1725.00%
▷ Public methods6798.53%
▷ Protected methods00.00%
▷ Private methods11.47%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
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