78% brandsoft-team-viewer

Code Review | Brandsoft Team Plugin

WordPress plugin Brandsoft Team Plugin scored78%from 54 tests.

About plugin

  • Plugin page: brandsoft-team-vi...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Oct 23, 2017
  • Latest release: Oct 23, 2017
  • Number of updates: 4
  • Update frequency: every 1.0 days
  • Top authors: brandsoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /751 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼5.91ms] Passed 4 tests

A check of server-side resources used by Brandsoft Team Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1538.44 ▼3.36
Dashboard /wp-admin3.46 ▲0.1152.12 ▼9.15
Posts /wp-admin/edit.php3.57 ▲0.2152.78 ▲3.32
Add New Post /wp-admin/post-new.php6.04 ▲0.1695.99 ▼14.45
Media Library /wp-admin/upload.php3.38 ▲0.1541.95 ▲7.43
Members /wp-admin/edit.php?post_type=bs_team_member3.4242.96
Teams /wp-admin/edit.php?post_type=bs_team3.4237.07
Add New Team /wp-admin/post-new.php?post_type=bs_team3.4546.53
Add New Member /wp-admin/post-new.php?post_type=bs_team_member3.5755.31

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Brandsoft Team Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲8914.34 ▼0.031.76 ▲0.1142.06 ▲1.01
Dashboard /wp-admin2,233 ▲565.63 ▼0.0290.17 ▼1.4837.10 ▼8.50
Posts /wp-admin/edit.php2,138 ▲352.00 ▲0.0240.39 ▼3.8037.50 ▼0.30
Add New Post /wp-admin/post-new.php1,572 ▲4623.13 ▼0.15640.69 ▼16.0847.20 ▼11.78
Media Library /wp-admin/upload.php1,435 ▲354.24 ▲0.0697.39 ▼9.9442.00 ▼2.47
Members /wp-admin/edit.php?post_type=bs_team_member1,0901.9630.8329.99
Teams /wp-admin/edit.php?post_type=bs_team1,0751.9335.0630.15
Add New Team /wp-admin/post-new.php?post_type=bs_team1,6232.8166.9934.42
Add New Member /wp-admin/post-new.php?post_type=bs_team_member2,5298.16187.17126.62

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% 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)
Good news, no errors were detected

SRP 0% from 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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/brandsoft-team-viewer/includes/media.php
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/brandsoft-team-viewer/includes/bsteam-member-info.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/brandsoft-team-viewer/includes/bsteam-team-info.php:6
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/brandsoft-team-viewer/includes/view.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Requires php: The plugin version is formatted incorrectly
You can take inspiration from this readme.txt

brandsoft-team-viewer/bsteam.php 85% from 13 tests

Analyzing the main PHP file in "Brandsoft Team Plugin" version 1.0.0
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("brandsoft-team-viewer.php" instead of "bsteam.php")
  • Git Repository: There should be no Git repositories present in your plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin2,473 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
CSS45284231,356
PHP643631960
JavaScript29279
SVG10078

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity86.00
▷ Minimum class complexity86.00
▷ Maximum class complexity86.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods34
▷ Static methods38.82%
▷ Public methods34100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
6 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/right.png0.45KB0.32KB▼ 28.38%
images/close-item.png0.60KB0.22KB▼ 62.54%
images/close.png0.57KB0.33KB▼ 42.29%
images/default.png16.22KB8.55KB▼ 47.30%
images/down.png5.20KB5.36KB0.00%