56% gs-team-members

Code Review | Team Members - A WordPress Team Plugin with Gallery, Grid, Carousel, Slider, Table, List, and More

WordPress plugin Team Members - A WordPress Team Plugin with Gallery, Grid, Carousel, Slider, Table, List, and More scored56%from 54 tests.

About plugin

  • Plugin page: gs-team-members
  • Plugin version: 2.2.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.4
  • WordPress version: 6.3.1
  • First release: Jun 8, 2016
  • Latest release: Nov 22, 2023
  • Number of updates: 214
  • Update frequency: every 12.7 days
  • Top authors: samdani (100%)

Code review

54 tests

User reviews

57 reviews

Install metrics

1,000+ active /67,065 total downloads

Benchmarks

Plugin footprint 47% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲5.76MB] [CPU: ▲33.62ms] 50% from 4 tests

A check of server-side resources used by Team Members - A WordPress Team Plugin with Gallery, Grid, Carousel, Slider, Table, List, and More
Please fix the following
  • CPU: The total CPU usage must kept under 500.00ms (currently 712.68ms on /wp-admin/edit.php?post_type=gs_team&page=gs-team-plugins-lite)
  • Extra RAM: Extra memory usage should kept under 5MB (currently 5.76MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /9.29 ▲5.8372.70 ▲33.22
Dashboard /wp-admin9.27 ▲5.9684.57 ▲34.29
Posts /wp-admin/edit.php9.27 ▲5.9192.93 ▲47.55
Add New Post /wp-admin/post-new.php11.24 ▲5.36113.90 ▲21.23
Media Library /wp-admin/upload.php9.27 ▲6.0478.58 ▲45.72
GS Plugins Pro /wp-admin/edit.php?post_type=gs_team&page=gs-team-plugins-premium9.27687.51
GS Plugins Lite /wp-admin/edit.php?post_type=gs_team&page=gs-team-plugins-lite9.27712.68
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius9.2764.39

Server storage [IO: ▲6.57MB] [DB: ▲0.05MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 367 new files
Database: 1 new table, 12 new options
New tables
wp_gs_team
New WordPress options
wp_gs_team_db_version
fs_active_plugins
db_upgraded
widget_recent-comments
widget_recent-posts
GS_Team_plugin_permalinks_flushed
fs_accounts
can_compress_scripts
theysaidso_admin_options
gs_team_plugin_version
...

Browser metrics Passed 4 tests

A check of browser resources used by Team Members - A WordPress Team Plugin with Gallery, Grid, Carousel, Slider, Table, List, and More
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲12114.79 ▲0.431.79 ▼0.0234.94 ▼10.66
Dashboard /wp-admin2,270 ▲905.58 ▼0.0392.86 ▼6.8482.72 ▲36.24
Posts /wp-admin/edit.php2,194 ▲941.96 ▲0.0140.66 ▼0.1636.03 ▼3.03
Add New Post /wp-admin/post-new.php1,643 ▲10722.63 ▼0.53673.01 ▲73.4334.34 ▼20.01
Media Library /wp-admin/upload.php1,484 ▲904.14 ▼0.08101.90 ▲2.5784.86 ▲42.89
GS Plugins Pro /wp-admin/edit.php?post_type=gs_team&page=gs-team-plugins-premium2,1642.0525.6689.34
GS Plugins Lite /wp-admin/edit.php?post_type=gs_team&page=gs-team-plugins-lite2,5592.0528.7678.01
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius1,1231.6524.1828.70

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/gs-team-members/freemius/includes/class-freemius.php+8546
    Undefined property: stdClass::$plugins
  • Zombie tables were found after uninstall: 1 table
    • wp_gs_team
  • This plugin does not fully uninstall, leaving 12 options in the database
    • wp_gs_team_db_version
    • db_upgraded
    • fs_accounts
    • fs_debug_mode
    • widget_recent-posts
    • widget_recent-comments
    • fs_active_plugins
    • gs_team_plugin_version
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/gs-team-members/includes/integrations/beaver/includes/frontend.php
  • 213× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function GSTEAM\\plugin() in wp-content/plugins/gs-team-members/templates/gs-team-layout-list-2.php:16
    • > PHP Notice
      Undefined variable: gs_team_cols in wp-content/plugins/gs-team-members/templates/gs-team-horizontal-four.php on line 20
    • > PHP Notice
      Undefined variable: _carousel_enabled in wp-content/plugins/gs-team-members/templates/gs-team-flip-five.php on line 19
    • > PHP Notice
      Undefined variable: _carousel_enabled in wp-content/plugins/gs-team-members/templates/gs-team-horizontal-one.php on line 25
    • > PHP Fatal error
      Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/gs-team-members/templates/gs-team-layout-greyscale.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function GSTEAM\\esc_attr() in wp-content/plugins/gs-team-members/templates/panels/gs-team-panel-style-two.php:3
    • > PHP Notice
      Undefined variable: gs_teammembers_pop_clm in wp-content/plugins/gs-team-members/templates/popups/gs-team-popup-default.php on line 3
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/gs-team-members/includes/integrations/beaver/includes/frontend.php on line 3
    • > PHP Notice
      Undefined variable: _carousel_enabled in wp-content/plugins/gs-team-members/templates/gs-grid-style-one.php on line 20
    • > PHP Notice
      Undefined variable: _filter_enabled in wp-content/plugins/gs-team-members/templates/gs-team-circle-one.php on line 40

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
You can take inspiration from this readme.txt

gs-team-members/gs-team.php 77% from 13 tests

The primary PHP file in "Team Members - A WordPress Team Plugin with Gallery, Grid, Carousel, Slider, Table, List, and More" version 2.2.4 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 323 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("gs-team-members.php" instead of "gs-team.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis 95% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected47,007 lines of code in 299 files:
LanguageFilesBlank linesComment linesLines of code
PHP24713,66118,56146,589
JavaScript207586381
CSS2711132
SVG4004
JSON1001

PHP code 0% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,096)
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 207)
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity66.22
▷ Minimum class complexity1.00
▷ Maximum class complexity3,096.00
Average method complexity4.35
▷ Minimum method complexity1.00
▷ Maximum method complexity207.00
Code structure
Namespaces2
Interfaces1
Traits0
Classes80
▷ Abstract classes33.75%
▷ Concrete classes7796.25%
▷ Final classes67.79%
Methods1,610
▷ Static methods22614.04%
▷ Public methods1,19173.98%
▷ Protected methods321.99%
▷ Private methods38724.04%
Functions180
▷ Named functions15485.56%
▷ Anonymous functions2614.44%
Constants150
▷ Global constants10368.67%
▷ Class constants4731.33%
▷ Public constants47100.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
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/gs-team-members.png9.63KB4.85KB▼ 49.69%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%