83% team-members

Code Review | Team Members

WordPress plugin Team Members scored83%from 54 tests.

About plugin

  • Plugin page: team-members
  • Plugin version: 5.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.3
  • WordPress version: 6.3.1
  • First release: Jan 24, 2015
  • Latest release: Aug 28, 2023
  • Number of updates: 145
  • Update frequency: every 21.6 days
  • Top authors: spwebguy (100%)

Code review

54 tests

User reviews

50 reviews

Install metrics

30,000+ active /572,262 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.15ms] Passed 4 tests

Analyzing server-side resources used by Team Members
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.33 ▼2.38
Dashboard /wp-admin3.33 ▲0.0352.02 ▼3.12
Posts /wp-admin/edit.php3.38 ▲0.0351.53 ▲2.72
Add New Post /wp-admin/post-new.php5.91 ▲0.0397.31 ▲2.16
Media Library /wp-admin/upload.php3.26 ▲0.0334.46 ▼5.26
All Teams /wp-admin/edit.php?post_type=tmm3.3035.99
Add New /wp-admin/post-new.php?post_type=tmm3.3750.45

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Team Members: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲8013.27 ▼1.164.45 ▲2.5641.57 ▼4.29
Dashboard /wp-admin2,230 ▲424.86 ▼0.04105.94 ▼0.8543.31 ▼0.29
Posts /wp-admin/edit.php2,116 ▲272.05 ▲0.0440.90 ▲5.2736.40 ▼0.44
Add New Post /wp-admin/post-new.php1,553 ▲3323.27 ▲0.22632.60 ▼62.4153.08 ▼6.26
Media Library /wp-admin/upload.php1,412 ▲214.20 ▼0.1195.01 ▼13.0341.18 ▼7.31
All Teams /wp-admin/edit.php?post_type=tmm1,1002.3852.8928.73
Add New /wp-admin/post-new.php?post_type=tmm3,1417.82181.4450.89

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
  • 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/team-members/inc/tmm-metaboxes-pro.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/team-members/inc/tmm-admin-scripts.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/team-members/inc/tmm-post-type.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/team-members/inc/tmm-metaboxes-members.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/team-members/inc/tmm-shortcode-column.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/team-members/inc/tmm-save-metaboxes.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/team-members/tmm.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/team-members/inc/tmm-metaboxes-help.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/team-members/inc/tmm-shortcode.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/team-members/inc/tmm-front-scripts.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: Screenshot #6 (Finding the shortcode (admin view)) image missing
  • Screenshots: Add a description for screenshot #5 in team-members/assets to your readme.txt
The official readme.txt might help

team-members/tmm.php 85% from 13 tests

The entry point to "Team Members" version 5.3.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 414 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("team-members.php" instead of "tmm.php")

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
Success! There were no dangerous files found in this plugin2,003 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP13243951,040
CSS413035593
JavaScript216880370

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions25
▷ Named functions25100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
17 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/img/links/pinterest.png3.39KB0.59KB▼ 82.67%
inc/img/links/tumblr.png3.03KB0.33KB▼ 89.15%
inc/img/links/messenger.png2.28KB1.77KB▼ 22.27%
inc/img/links/customlink.png3.36KB0.85KB▼ 74.61%
inc/img/links/whatsapp.png3.49KB0.66KB▼ 81.07%