64% team-free

Code Review | WP Team - Best Team Members Showcase Plugin for WordPress

WordPress plugin WP Team - Best Team Members Showcase Plugin for WordPress scored64%from 54 tests.

About plugin

  • Plugin page: team-free
  • Plugin version: 2.2.19
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4
  • WordPress version: 6.3.1
  • First release: Oct 11, 2016
  • Latest release: Nov 7, 2023
  • Number of updates: 87
  • Update frequency: every 29.7 days
  • Top authors: shapedplugin (67.82%)rubel_miah (31.03%)Shamimmiashuhagh (3.45%)

Code review

54 tests

User reviews

74 reviews

Install metrics

5,000+ active /113,794 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲2.00MB] [CPU: ▲11.67ms] Passed 4 tests

A check of server-side resources used by WP Team - Best Team Members Showcase Plugin for WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /5.48 ▲2.0153.42 ▲9.78
Dashboard /wp-admin5.30 ▲2.0065.53 ▲12.62
Posts /wp-admin/edit.php5.35 ▲1.9963.90 ▲17.05
Add New Post /wp-admin/post-new.php7.96 ▲2.0798.40 ▲7.23
Media Library /wp-admin/upload.php5.23 ▲1.9953.47 ▲17.85
Settings /wp-admin/edit.php?post_type=sptp_member&page=team_settings7.3254.74
All Members /wp-admin/edit.php?post_type=sptp_member7.4660.70
Tools /wp-admin/edit.php?post_type=sptp_member&page=team_tools7.3251.44
Help /wp-admin/edit.php?post_type=sptp_member&page=team_help7.3252.63
Add New /wp-admin/post-new.php?post_type=sptp_member7.5382.67
Team Generator /wp-admin/edit.php?post_type=sptp_generator7.4659.06

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 201 new files
Database: no new tables, 13 new options
New WordPress options
widget_recent-comments
widget_wpteam_widget
can_compress_scripts
sp_wp_team_db_version
_sptp_settings
db_upgraded
sp_wp_team_first_version
sp_wpt_review_notice_dismiss
sp_wp_team_version
sp_wp_team_activation_date
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Team - Best Team Members Showcase Plugin for WordPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,909 ▲14714.34 ▲0.221.63 ▼0.1327.94 ▼16.11
Dashboard /wp-admin2,312 ▲1345.61 ▲0.0391.08 ▼28.9137.45 ▼6.20
Posts /wp-admin/edit.php2,213 ▲1162.00 ▲0.0540.20 ▲4.0037.39 ▲1.81
Add New Post /wp-admin/post-new.php6,247 ▲4,71219.29 ▼5.85840.90 ▲190.3554.11 ▼22.04
Media Library /wp-admin/upload.php1,514 ▲1174.20 ▼0.0299.58 ▼5.1944.64 ▲0.82
Settings /wp-admin/edit.php?post_type=sptp_member&page=team_settings1,5173.6966.2548.41
All Members /wp-admin/edit.php?post_type=sptp_member1,3843.8957.0132.78
Tools /wp-admin/edit.php?post_type=sptp_member&page=team_tools1,2523.8854.5373.50
Help /wp-admin/edit.php?post_type=sptp_member&page=team_help2,01212.25305.35142.27
Add New /wp-admin/post-new.php?post_type=sptp_member2,9818.53213.6895.37
Team Generator /wp-admin/edit.php?post_type=sptp_generator1,4164.1658.3531.74

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Compile error in wp-content/plugins/team-free/team-free.php+77
    Cannot redeclare run_wp_team() (previously declared in wp-content/plugins/team-free/team-free.php:78)
  • The plugin did not uninstall correctly, leaving 201 files (2.45MB) in the plugin directory
    • (new file) src/Admin/Admin.php
    • (new file) readme.txt
    • (new file) index.php
    • (new file) languages/team-free.pot
    • (new file) src/Admin/Configs/Generator/SPTP_Image.php
    • (new file) src/Admin/Configs/Generator.php
    • (new file) src/Admin/Configs/Generator/SPTP_Display.php
    • (new file) src/Admin/Configs/Generator/SPTP_General.php
    • (new file) src/Admin/Configs/Generator/SPTP_Carousel.php
    • (new file) src/Admin/Configs/Generator/SPTP_Layout.php
    • ...
  • This plugin did not uninstall successfully, leaving 14 options in the database
    • recovery_mode_email_last_sent
    • sp_wp_team_activation_date
    • sp_wp_team_first_version
    • sp_wp_team_db_version
    • _sptp_settings
    • widget_recent-comments
    • widget_wpteam_widget
    • sp_wpt_review_notice_dismiss
    • widget_recent-posts
    • sp_wp_team_version
    • ...

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
Good news, no errors were detected

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 take a closer look at the following
  • 29× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/team-free/src/Frontend/partials/dynamic-css-settings.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/team-free/src/Frontend/templates/member/description.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/team-free/src/Frontend/templates/sptp-single.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/team-free/src/Frontend/partials/dynamic-css-settings.php:10
    • > PHP Notice
      Undefined variable: link_detail in wp-content/plugins/team-free/src/Frontend/templates/member/image.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function update_option() in wp-content/plugins/team-free/src/Admin/updates/update-2.0.5.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function update_option() in wp-content/plugins/team-free/src/Admin/updates/update-2.2.15.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/team-free/src/Frontend/templates/member/job_title.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/team-free/src/Admin/ElementBlock_Deprecated/Shortcode_Widget_Deprecated.php:23
    • > PHP Notice
      Undefined variable: preloader in wp-content/plugins/team-free/src/Frontend/templates/preloader.php on line 12

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 on the user side

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 require attention:
  • Tags: Please reduce the number of tags, currently 35 tag instead of maximum 10
The official readme.txt is a good inspiration

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

This is the main PHP file of "WP Team - Best Team Members Showcase Plugin for WordPress" version 2.2.19, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 164 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
Good job! No executable or dangerous file extensions detected22,939 lines of code in 180 files:
LanguageFilesBlank linesComment linesLines of code
PHP1081,9703,8909,787
CSS181,1545936,351
JavaScript126582644,039
SVG40012,754
JSON2008

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity16.90
▷ Minimum class complexity1.00
▷ Maximum class complexity143.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity75.00
Code structure
Namespaces16
Interfaces0
Traits1
Classes72
▷ Abstract classes22.78%
▷ Concrete classes7097.22%
▷ Final classes00.00%
Methods292
▷ Static methods7927.05%
▷ Public methods27794.86%
▷ Protected methods41.37%
▷ Private methods113.77%
Functions19
▷ Named functions1789.47%
▷ Anonymous functions210.53%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
src/Frontend/img/Placeholder-Image.png2.58KB1.75KB▼ 32.22%
src/Admin/img/checkerboard.png2.02KB2.54KB0.00%