83% ht-team-member

Code Review | WP Team - WordPress Team Member Plugin

WordPress plugin WP Team - WordPress Team Member Plugin scored83%from 54 tests.

About plugin

  • Plugin page: ht-team-member
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Jan 29, 2019
  • Latest release: Aug 3, 2023
  • Number of updates: 21
  • Update frequency: every 78.7 days
  • Top authors: htplugins (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

900+ active /10,759 total downloads

Benchmarks

Plugin footprint 82% 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: ▲0.50MB] [CPU: ▲1.28ms] 75% from 4 tests

Server-side resources used by WP Team - WordPress Team Member Plugin
Please take the time to fix the following items
  • CPU: You should keep total CPU usage under 500.00ms (currently 1,336.10ms on /wp-admin/admin.php?page=ht-teammember-recommendations)
PageMemory (MB)CPU Time (ms)
Home /3.92 ▲0.4552.47 ▲10.79
Dashboard /wp-admin3.88 ▲0.5760.85 ▲6.75
Posts /wp-admin/edit.php3.93 ▲0.5755.05 ▲1.18
Add New Post /wp-admin/post-new.php6.37 ▲0.4993.87 ▼8.01
Media Library /wp-admin/upload.php3.72 ▲0.4939.98 ▲5.21
Team Member /wp-admin/edit.php?post_type=htteam_member3.8548.82
Settings /wp-admin/admin.php?page=htteamoptions3.7136.30
Recommendations /wp-admin/admin.php?page=ht-teammember-recommendations8.091,336.10

Server storage [IO: ▲1.45MB] [DB: ▲0.67MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 46 new files
Database: no new tables, 10 new options
New WordPress options
htteam_widgets_general_tabs
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
htteam_widgets_options_tabs
widget_htteammember_default_widgets
can_compress_scripts
widget_recent-posts
htteam_shortcodeopt_tabs

Browser metrics Passed 4 tests

A check of browser resources used by WP Team - WordPress Team Member Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,983 ▲19714.64 ▲0.241.84 ▼0.3144.59 ▼1.39
Dashboard /wp-admin2,382 ▲2056.34 ▲0.67115.52 ▲25.4140.92 ▲0.80
Posts /wp-admin/edit.php2,325 ▲2223.50 ▲1.5255.64 ▲11.6331.24 ▼7.43
Add New Post /wp-admin/post-new.php1,575 ▲4923.27 ▲0.35605.69 ▼53.4132.69 ▼31.48
Media Library /wp-admin/upload.php1,458 ▲554.37 ▲0.1980.72 ▼20.5440.94 ▼6.18
Team Member /wp-admin/edit.php?post_type=htteam_member1,2933.5349.4626.40
Settings /wp-admin/admin.php?page=htteamoptions1,4743.3346.5027.54
Recommendations /wp-admin/admin.php?page=ht-teammember-recommendations3,1003.2948.3993.53

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 10 options in the database
    • htteam_widgets_options_tabs
    • htteam_shortcodeopt_tabs
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • htteam_widgets_general_tabs
    • widget_htteammember_default_widgets
    • widget_recent-comments
    • 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
The smoke test was a success, however most plugin functionality was not tested

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 items
  • 7× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/ht-team-member/template/archive-htteam_member.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ht-team-member/include/default_widgets.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ht-team-member/include/shortcode.php:323
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ht-team-member/admin/include/Custom_meta_fields.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/ht-team-member/template/single-htteam_member.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ht-team-member/admin/classes/Custom_post_type.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ht-team-member/include/vc_map.php:430

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: team, team member, wp team, widgets, elementor

ht-team-member/ht-team-member.php 85% from 13 tests

The primary PHP file in "WP Team - WordPress Team Member Plugin" version 1.1.4 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • 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 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected7,141 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP156363493,759
SVG1002,671
CSS45710539
JavaScript33840172

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity30.00
▷ Minimum class complexity1.00
▷ Maximum class complexity72.00
Average method complexity4.03
▷ Minimum method complexity1.00
▷ Maximum method complexity58.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods67
▷ Static methods11.49%
▷ Public methods6495.52%
▷ Protected methods34.48%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
17 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) admin/assets/images/extensions/ht-menu.png2.85KB0.00KB▼ 100.00%
admin/assets/images/extensions/ht-slider-addons-pro.png6.41KB4.35KB▼ 32.23%
admin/assets/images/extensions/whols-pro.png15.30KB7.40KB▼ 51.65%
admin/assets/images/extensions/swatchly-pro.png13.99KB5.41KB▼ 61.37%
admin/assets/images/extensions/ht-script-pro.png6.03KB2.71KB▼ 55.09%