78% tlp-team

Code Review | Team - WordPress Team Members Showcase Plugin

WordPress plugin Team - WordPress Team Members Showcase Plugin scored78%from 54 tests.

About plugin

  • Plugin page: tlp-team
  • Plugin version: 4.3.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.4
  • WordPress version: 6.3.1
  • First release: Sep 8, 2015
  • Latest release: Nov 20, 2023
  • Number of updates: 200
  • Update frequency: every 15.1 days
  • Top authors: techlabpro1 (100%)

Code review

54 tests

User reviews

59 reviews

Install metrics

10,000+ active /299,851 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲1.78MB] [CPU: ▲7.94ms] Passed 4 tests

An overview of server-side resources used by Team - WordPress Team Members Showcase Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /5.02 ▲1.5644.81 ▲3.21
Dashboard /wp-admin5.16 ▲1.8559.35 ▲10.82
Posts /wp-admin/edit.php5.21 ▲1.8556.93 ▲12.09
Add New Post /wp-admin/post-new.php7.76 ▲1.8798.83 ▲5.65
Media Library /wp-admin/upload.php5.08 ▲1.8552.50 ▲20.32
Designations /wp-admin/edit-tags.php?taxonomy=team_designation&post_type=team5.0843.42
Settings /wp-admin/edit.php?post_type=team&page=tlp_team_settings5.5442.98
Get Help /wp-admin/edit.php?post_type=team&page=tlp_team_get_help5.0740.90
Departments /wp-admin/edit-tags.php?taxonomy=team_department&post_type=team5.0855.30
Shortcode Generator /wp-admin/edit.php?post_type=team-sc5.1552.66
Add Member /wp-admin/post-new.php?post_type=team5.6966.23
All Members /wp-admin/edit.php?post_type=team5.1348.41

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 210 new files
Database: no new tables, 10 new options
New WordPress options
widget_widget_tlpteam_sc
widget_widget_tlpteam
widget_recent-posts
widget_recent-comments
db_upgraded
rtteam_plugin_activation_time
can_compress_scripts
widget_widget_tlp_team_owl_carousel
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Team - WordPress Team Members Showcase Plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,886 ▲9914.67 ▲0.431.69 ▼0.2438.63 ▼8.03
Dashboard /wp-admin2,280 ▲1065.55 ▼0.1087.95 ▼9.8178.87 ▲34.01
Posts /wp-admin/edit.php2,192 ▲922.15 ▲0.2140.74 ▲4.2137.18 ▼1.52
Add New Post /wp-admin/post-new.php6,356 ▲4,83027.23 ▲4.08932.60 ▲311.70183.43 ▲125.16
Media Library /wp-admin/upload.php1,485 ▲884.22 ▼0.01103.72 ▲1.6474.43 ▲30.44
Designations /wp-admin/edit-tags.php?taxonomy=team_designation&post_type=team1,3702.2729.5439.24
Settings /wp-admin/edit.php?post_type=team&page=tlp_team_settings1,1982.7041.4247.99
Get Help /wp-admin/edit.php?post_type=team&page=tlp_team_get_help2,29316.19543.4884.30
Departments /wp-admin/edit-tags.php?taxonomy=team_department&post_type=team1,3732.3135.3842.73
Shortcode Generator /wp-admin/edit.php?post_type=team-sc1,4954.4777.37103.07
Add Member /wp-admin/post-new.php?post_type=team2,9298.38209.98167.37
All Members /wp-admin/edit.php?post_type=team1,3222.7345.8838.46

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • widget_widget_tlpteam_sc
    • theysaidso_admin_options
    • widget_widget_tlp_team_owl_carousel
    • can_compress_scripts
    • rtteam_plugin_activation_time
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_widget_tlpteam

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)
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 77× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/tlp-team/app/Controllers/Hooks/ActionHooks.php
    • > /wp-content/plugins/tlp-team/app/Widgets/Elementor/Controls/ImageSelector.php
    • > /wp-content/plugins/tlp-team/app/Helpers/Deprecated.php
    • > /wp-content/plugins/tlp-team/app/Controllers/Admin/Metabox/ShortcodeMeta.php
    • > /wp-content/plugins/tlp-team/templates/single-team.php
    • > /wp-content/plugins/tlp-team/templates/layouts/carousel-el-1.php
    • > /wp-content/plugins/tlp-team/templates/layouts/isotope-free.php
    • > /wp-content/plugins/tlp-team/app/Widgets/Elementor/Elements/IsotopeLayout.php
    • > /wp-content/plugins/tlp-team/templates/layouts/isotope1.php
    • > /wp-content/plugins/tlp-team/app/Abstracts/Controller.php
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      Use of undefined constant TLP_TEAM_PATH - assumed 'TLP_TEAM_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/tlp-team/app/RttlpTeam.php on line 8
    • > PHP Fatal error
      require_once(): Failed opening required 'TLP_TEAM_PATHvendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/tlp-team/app/RttlpTeam.php on line 8
    • > PHP Warning
      require_once(TLP_TEAM_PATHvendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/tlp-team/app/RttlpTeam.php on line 8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Donate link: Please fix this invalid url: ""
The official readme.txt is a good inspiration

tlp-team/tlp-team.php Passed 13 tests

The main file in "Team - WordPress Team Members Showcase Plugin" v. 4.3.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
82 characters long description:
Team is a fully responsive and mobile friendly team member profile display plugin.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin46,883 lines of code in 137 files:
LanguageFilesBlank linesComment linesLines of code
CSS164,43528114,857
PHP902,6863,15113,543
SVG8009,612
JavaScript221,8652,5478,856
XML11015

PHP code 50% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
  • Method cyclomatic complexity should be reduced to less than 100 (currently 208)
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity29.16
▷ Minimum class complexity1.00
▷ Maximum class complexity374.00
Average method complexity5.09
▷ Minimum method complexity1.00
▷ Maximum method complexity208.00
Code structure
Namespaces20
Interfaces0
Traits1
Classes66
▷ Abstract classes23.03%
▷ Concrete classes6496.97%
▷ Final classes11.56%
Methods459
▷ Static methods15834.42%
▷ Public methods35577.34%
▷ Protected methods6013.07%
▷ Private methods449.59%
Functions18
▷ Named functions422.22%
▷ Anonymous functions1477.78%
Constants11
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.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
53 compressed PNG files occupy 0.16MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/layouts/layout3.png0.84KB0.89KB0.00%
assets/images/layouts/special01.png0.58KB0.58KB0.17%
assets/images/layouts/layout8.png0.78KB0.77KB▼ 0.88%
assets/images/layouts/carousel9.png1.34KB1.33KB0.29%
assets/images/admin/banner.png31.89KB15.24KB▼ 52.20%