82% display-team-members

Code Review | Display Team Members WordPress Plugin

WordPress plugin Display Team Members WordPress Plugin scored 82% from 54 tests.

About plugin

  • Plugin page: display-team-members
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7.2
  • WordPress version: 5.8.1
  • First release: Aug 14, 2019
  • Latest release: May 24, 2021
  • Number of updates: 6
  • Update frequency: every 109.0 days
  • Top authors: wpevince (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 400 total downloads


Plugin footprint Passed 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: ▲0.40MB] [CPU: ▼139.24ms] Passed 4 tests

Server-side resources used by Display Team Members WordPress Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.17 ▲0.4439.52 ▲17.77
Dashboard /wp-admin3.50 ▲0.4449.68 ▲0.23
Posts /wp-admin/edit.php3.54 ▲0.4351.24 ▲8.67
Add New Post /wp-admin/post-new.php5.80 ▲0.36108.61 ▼555.75
Media Library /wp-admin/upload.php3.37 ▲0.3633.71 ▼10.10
All Team Members /wp-admin/edit.php?post_type=evdpl_team_members3.4740.78
Add New Team Member /wp-admin/post-new.php?post_type=evdpl_team_members3.5453.29
Team Category /wp-admin/edit-tags.php?taxonomy=evdpl_team_member_category&post_type=evdpl_team_members3.3737.57
Create Shortcode /wp-admin/edit.php?post_type=evdpl_mem_shortcode3.4738.39

Server storage [IO: ▲4.32MB] [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: 301 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Display Team Members WordPress Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,839 ▲24316.19 ▲0.5813.51 ▲3.9650.79 ▼4.78
Dashboard /wp-admin3,009 ▲785.86 ▼0.06141.49 ▼28.94137.37 ▲11.29
Posts /wp-admin/edit.php2,788 ▲522.59 ▼0.1168.00 ▼3.9289.54 ▼6.88
Add New Post /wp-admin/post-new.php1,715 ▲12118.77 ▼0.09396.94 ▼0.55110.64 ▼4.85
Media Library /wp-admin/upload.php1,870 ▲635.03 ▲0.01135.76 ▼29.40147.13 ▲15.57
All Team Members /wp-admin/edit.php?post_type=evdpl_team_members1,4942.5467.8479.45
Add New Team Member /wp-admin/post-new.php?post_type=evdpl_team_members3,7979.90259.68180.68
Team Category /wp-admin/edit-tags.php?taxonomy=evdpl_team_member_category&post_type=evdpl_team_members1,8122.4961.9486.95
Create Shortcode /wp-admin/edit.php?post_type=evdpl_mem_shortcode1,4762.6263.0585.64

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/post-new.php?post_type=evdpl_team_members
    • > Notice in wp-content/plugins/display-team-members/admin/framework/classes/metabox.php+79
    Trying to access array offset on value of type bool

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/display-team-members/admin/framework/templates/settings/global/header.php
    • > /wp-content/plugins/display-team-members/admin/framework/templates/settings/modern/footer.php
    • > /wp-content/plugins/display-team-members/admin/framework/templates/settings/global/footer.php
  • 26× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: class in wp-content/plugins/display-team-members/admin/framework/templates/settings/simple/header.php on line 3
    • > PHP Notice
      Undefined variable: theme in wp-content/plugins/display-team-members/admin/framework/templates/settings/global/header.php on line 1
    • > PHP Notice
      Undefined variable: class in wp-content/plugins/display-team-members/admin/framework/templates/settings/render.php on line 5
    • > PHP Notice
      Undefined variable: class in wp-content/plugins/display-team-members/admin/framework/templates/settings/modern/body.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function evdpl_mem_get_post_meta() in wp-content/plugins/display-team-members/templates/templates-one.php:2
    • > PHP Notice
      Undefined variable: class in wp-content/plugins/display-team-members/admin/framework/templates/settings/simple/body.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to a member function is_single_page() on null in wp-content/plugins/display-team-members/admin/framework/templates/settings/render.php:5
    • > PHP Warning
      Use of undefined constant WPSF_VERSION - assumed 'WPSF_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/display-team-members/admin/framework/templates/settings/modern/footer.php on line 4
    • > PHP Notice
      Undefined variable: class in wp-content/plugins/display-team-members/admin/framework/templates/settings/simple/footer.php on line 7
    • > PHP Notice
      Undefined variable: title in wp-content/plugins/display-team-members/admin/framework/templates/settings/simple/header.php on line 1

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


Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 25 tag instead of maximum 10
The official readme.txt might help

display-team-members/main.php 77% from 13 tests

The principal PHP file in "Display Team Members WordPress Plugin" v. 1.2.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder was not found ("/languages")
  • Main file name: Name the main plugin file the same as the plugin slug ("display-team-members.php" instead of "main.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected30,228 lines of code in 139 files:
LanguageFilesBlank linesComment linesLines of code
PO File7306334705

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity16.27
▷ Minimum class complexity1.00
▷ Maximum class complexity161.00
Average method complexity4.27
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
▷ Abstract classes25.00%
▷ Concrete classes3895.00%
▷ Final classes00.00%
▷ Static methods31.60%
▷ Public methods16387.17%
▷ Protected methods42.14%
▷ Private methods2010.70%
▷ Named functions64100.00%
▷ Anonymous functions00.00%
▷ Global constants9100.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
136 compressed PNG files occupy 0.33MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/framework/assets/css/themes/square-aero.png2.12KB1.83KB▼ 13.71%
admin/framework/assets/css/themes/flat-green@2x.png3.04KB2.84KB▼ 6.54%