63% wps-team

Code Review | Team Members – Best WordPress Team Plugin with Team Slider, Team Showcase & Team Builder

WordPress plugin Team Members – Best WordPress Team Plugin with Team Slider, Team Showcase & Team Builder scored63%from 54 tests.

About plugin

  • Plugin page: wps-team
  • Plugin version: 2.9.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.4
  • WordPress version: 6.3.1
  • First release: Mar 4, 2022
  • Latest release: Dec 1, 2023
  • Number of updates: 94
  • Update frequency: every 6.8 days
  • Top authors: wpspeedo (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

700+ active /13,270 total downloads

Benchmarks

Plugin footprint 47% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲6.05MB] [CPU: ▲35.24ms] 75% from 4 tests

An overview of server-side resources used by Team Members – Best WordPress Team Plugin with Team Slider, Team Showcase & Team Builder
Please fix the following
  • Extra RAM: Extra memory usage should kept under 5MB (currently 6.05MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /9.38 ▲5.9275.30 ▲32.36
Dashboard /wp-admin9.40 ▲6.0688.79 ▲25.92
Posts /wp-admin/edit.php9.40 ▲6.04114.93 ▲64.35
Add New Post /wp-admin/post-new.php12.53 ▲6.64131.69 ▲35.79
Media Library /wp-admin/upload.php9.40 ▲6.1781.81 ▲46.89
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius9.4073.81

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 323 new files
Database: 1 new table, 14 new options
New tables
wp_wps_team
New WordPress options
fs_debug_mode
fs_accounts
wps_team_notice_demo_import_notice
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
_wps_team_installed_time
widget_theysaidso_widget
db_upgraded
wps_team_version
...

Browser metrics Passed 4 tests

A check of browser resources used by Team Members – Best WordPress Team Plugin with Team Slider, Team Showcase & Team Builder
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,852 ▲10514.32 ▼0.391.56 ▼0.5728.04 ▼15.49
Dashboard /wp-admin2,254 ▲745.54 ▼0.1093.45 ▼5.8683.56 ▲39.09
Posts /wp-admin/edit.php2,160 ▲632.00 ▼0.0343.41 ▲4.1240.60 ▲6.60
Add New Post /wp-admin/post-new.php1,528 ▼221.59 ▼1.30599.95 ▼27.4734.08 ▼20.56
Media Library /wp-admin/upload.php1,462 ▲654.18 ▲0.0395.64 ▲0.6869.32 ▲28.02
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius1,1171.6626.0428.78

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/wps-team/includes/freemius/includes/class-freemius.php+8546
    Undefined property: stdClass::$plugins
  • Zombie tables were found after uninstall: 1 table
    • wp_wps_team
  • This plugin does not fully uninstall, leaving 14 options in the database
    • db_upgraded
    • widget_recent-comments
    • fs_accounts
    • fs_debug_mode
    • wp_wps_team_db_ver
    • widget_theysaidso_widget
    • wps_team_notice_rating_notice
    • theysaidso_admin_options
    • fs_active_plugins
    • _wps_team_installed_time
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      require_once(WPS_TEAM_INC_PATHfreemius/start.php): failed to open stream: No such file or directory in wp-content/plugins/wps-team/freemius.php on line 18
    • > PHP Fatal error
      require_once(): Failed opening required 'WPS_TEAM_INC_PATHfreemius/start.php' (include_path='.:/usr/share/php') in wp-content/plugins/wps-team/freemius.php on line 18
    • > PHP Warning
      Use of undefined constant WPS_TEAM_INC_PATH - assumed 'WPS_TEAM_INC_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wps-team/freemius.php on line 18
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/wps-team/includes/integrations/elementor/widget.php:5

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (19 tag instead of maximum 10)
The official readme.txt is a good inspiration

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

Analyzing the main PHP file in "Team Members – Best WordPress Team Plugin with Team Slider, Team Showcase & Team Builder" version 2.9.1
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis 97% from 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 detected57,641 lines of code in 255 files:
LanguageFilesBlank linesComment linesLines of code
PHP20910,55519,25245,661
SVG8009,632
CSS211141,272
JSON200863
JavaScript153761213

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
These items need your attention
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,096)
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity42.88
▷ Minimum class complexity1.00
▷ Maximum class complexity3,096.00
Average method complexity3.98
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces1
Interfaces1
Traits4
Classes129
▷ Abstract classes1410.85%
▷ Concrete classes11589.15%
▷ Final classes10.87%
Methods1,935
▷ Static methods35218.19%
▷ Public methods1,41072.87%
▷ Protected methods1206.20%
▷ Private methods40520.93%
Functions123
▷ Named functions10786.99%
▷ Anonymous functions1613.01%
Constants209
▷ Global constants11454.55%
▷ Class constants9545.45%
▷ Public constants95100.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
includes/freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%