84% wp-team-manager

Code Review | WordPress Team Manager

WordPress plugin WordPress Team Manager scored84%from 54 tests.

About plugin

  • Plugin page: wp-team-manager
  • Plugin version: 2.0.13
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.0-6.3
  • WordPress version: 6.3.1
  • First release: Jan 26, 2014
  • Latest release: Aug 17, 2023
  • Number of updates: 131
  • Update frequency: every 26.6 days
  • Top authors: maidulcu (100%)

Code review

54 tests

User reviews

23 reviews

Install metrics

1,000+ active /52,844 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.92MB] [CPU: ▼3.05ms] Passed 4 tests

Server-side resources used by WordPress Team Manager
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.35 ▲0.8850.47 ▲9.71
Dashboard /wp-admin4.24 ▲0.8954.14 ▼12.59
Posts /wp-admin/edit.php4.32 ▲0.9660.46 ▲5.86
Add New Post /wp-admin/post-new.php7.00 ▲1.1198.60 ▼11.48
Media Library /wp-admin/upload.php4.16 ▲0.9344.26 ▲6.00
Add New Member /wp-admin/post-new.php?post_type=team_manager7.47100.51
Settings /wp-admin/edit.php?post_type=team_manager&page=team_manager4.1445.00
Shortcode Generator /wp-admin/edit.php?post_type=team_manager&page=team-manager-shortcode-generator4.1441.95
Team Designation /wp-admin/edit-tags.php?taxonomy=team_designation&post_type=team_manager4.1643.64
Team Department /wp-admin/edit-tags.php?taxonomy=team_department&post_type=team_manager4.1640.67
Team /wp-admin/edit.php?post_type=team_manager4.2144.36
Team Groups /wp-admin/edit-tags.php?taxonomy=team_groups&post_type=team_manager4.1641.39

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 391 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
can_compress_scripts
wp_team_manager_version
db_upgraded
widget_theysaidso_widget
wp_team_manager_isntalled
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for WordPress Team Manager
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,851 ▲9014.31 ▲0.021.97 ▲0.1843.30 ▲4.82
Dashboard /wp-admin2,253 ▲795.73 ▲0.0896.51 ▲7.1141.77 ▼2.27
Posts /wp-admin/edit.php2,161 ▲792.04 ▲0.0142.49 ▲3.7437.37 ▲0.97
Add New Post /wp-admin/post-new.php1,571 ▲4123.12 ▲0.09665.70 ▼34.8157.47 ▼7.52
Media Library /wp-admin/upload.php1,458 ▲614.24 ▲0.08102.12 ▼2.2843.16 ▼3.67
Add New Member /wp-admin/post-new.php?post_type=team_manager6,58719.51868.4239.27
Settings /wp-admin/edit.php?post_type=team_manager&page=team_manager9372.2226.2229.98
Shortcode Generator /wp-admin/edit.php?post_type=team_manager&page=team-manager-shortcode-generator1,6072.5353.9746.89
Team Designation /wp-admin/edit-tags.php?taxonomy=team_designation&post_type=team_manager1,3302.2029.0131.07
Team Department /wp-admin/edit-tags.php?taxonomy=team_department&post_type=team_manager1,3362.2331.3431.77
Team /wp-admin/edit.php?post_type=team_manager1,1712.0034.5031.24
Team Groups /wp-admin/edit-tags.php?taxonomy=team_groups&post_type=team_manager1,3302.3228.2330.12

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 8 options in the database
    • theysaidso_admin_options
    • wp_team_manager_isntalled
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • wp_team_manager_version

Smoke tests 75% 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
  • 44× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-team-manager/public/templates/single-team_manager.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/wp-team-manager/lib/cmb2/includes/types/CMB2_Type_File_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text_Date' not found in wp-content/plugins/wp-team-manager/lib/cmb2/includes/types/CMB2_Type_Text_Time.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/wp-team-manager/lib/cmb2/includes/types/CMB2_Type_Oembed.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/wp-team-manager/lib/cmb2/includes/types/CMB2_Type_Text_Date.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/wp-team-manager/lib/cmb2/includes/CMB2_Hookup.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/wp-team-manager/lib/cmb2/includes/types/CMB2_Type_Checkbox.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/wp-team-manager/lib/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp_Timezone.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/wp-team-manager/lib/cmb2/includes/types/CMB2_Type_Multi_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Counter_Base' not found in wp-content/plugins/wp-team-manager/lib/cmb2/includes/types/CMB2_Type_Text.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: my team, team slider, teams, team showcase, team...

wp-team-manager/wp-team-manager.php Passed 13 tests

Analyzing the main PHP file in "WordPress Team Manager" version 2.0.13
100 characters long description:
This plugin allows you to manage the members of your team or staff and display them using shortcode.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected67,900 lines of code in 230 files:
LanguageFilesBlank linesComment linesLines of code
PO File12014,31518,50232,323
CSS214,4691,23815,226
SVG4109,565
PHP722,4566,7618,447
JavaScript103975911,571
Markdown32490768

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity18.04
▷ Minimum class complexity1.00
▷ Maximum class complexity188.00
Average method complexity3.30
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes77
▷ Abstract classes911.69%
▷ Concrete classes6888.31%
▷ Final classes11.47%
Methods573
▷ Static methods9616.75%
▷ Public methods48083.77%
▷ Protected methods8915.53%
▷ Private methods40.70%
Functions43
▷ Named functions43100.00%
▷ Anonymous functions00.00%
Constants16
▷ Global constants956.25%
▷ Class constants743.75%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
14 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lib/cmb2/images/ui-bg_flat_0_aaaaaa_40x100.png0.18KB0.08KB▼ 51.67%
lib/cmb2/images/ico-delete.png0.70KB0.72KB0.00%
lib/cmb2/images/ui-icons_888888_256x240.png5.23KB4.11KB▼ 21.49%
lib/cmb2/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
lib/cmb2/images/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%