78% team-master

Code Review | Team Master - A Modern WordPress Team Showcase

WordPress plugin Team Master - A Modern WordPress Team Showcase scored78%from 54 tests.

About plugin

  • Plugin page: team-master
  • Plugin version: 1.1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9.2
  • WordPress version: 6.3.1
  • First release: Sep 16, 2019
  • Latest release: Mar 26, 2022
  • Number of updates: 26
  • Update frequency: every 35.5 days
  • Top authors: adnanmoqsood (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /2,057 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.33MB] [CPU: ▲2.08ms] Passed 4 tests

A check of server-side resources used by Team Master - A Modern WordPress Team Showcase
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.80 ▲0.3452.49 ▲13.85
Dashboard /wp-admin3.68 ▲0.3857.56 ▲4.18
Posts /wp-admin/edit.php3.72 ▲0.3660.22 ▲4.57
Add New Post /wp-admin/post-new.php6.20 ▲0.3292.38 ▼9.96
Media Library /wp-admin/upload.php3.54 ▲0.3245.72 ▲9.52
Add New /wp-admin/post-new.php?post_type=tm_members3.7359.10
Shortcode /wp-admin/edit.php?post_type=tm_members&page=team-master-shortcode-builder3.6044.95
All Members /wp-admin/edit.php?post_type=tm_members3.5746.19
Roles /wp-admin/edit-tags.php?taxonomy=tm_members_role&post_type=tm_members3.5442.74
Settings /wp-admin/edit.php?post_type=tm_members&page=team-master-settings3.6042.90

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 88 new files
Database: no new tables, 18 new options
New WordPress options
tm_default_title_color
can_compress_scripts
tm_default_activate_carousel
tm_default_background_color
widget_recent-posts
tm_default_load_more
tm_default_auto_play_carousel
tm_default_perpage
tm_default_column
theysaidso_admin_options
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Team Master - A Modern WordPress Team Showcase
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,974 ▲22813.82 ▼0.4810.17 ▲8.4142.18 ▲2.93
Dashboard /wp-admin2,247 ▲565.90 ▲0.09101.20 ▼5.8342.05 ▼3.54
Posts /wp-admin/edit.php2,133 ▲441.97 ▼0.0240.41 ▲0.7334.76 ▼1.72
Add New Post /wp-admin/post-new.php1,562 ▲4323.31 ▲0.04684.28 ▲17.5163.63 ▲2.54
Media Library /wp-admin/upload.php1,432 ▲444.30 ▲0.0496.29 ▼23.2244.26 ▼7.94
Add New /wp-admin/post-new.php?post_type=tm_members2,4807.79176.7069.40
Shortcode /wp-admin/edit.php?post_type=tm_members&page=team-master-shortcode-builder2,2163.62103.9043.55
All Members /wp-admin/edit.php?post_type=tm_members1,1271.9533.0234.24
Roles /wp-admin/edit-tags.php?taxonomy=tm_members_role&post_type=tm_members1,3002.1427.1931.31
Settings /wp-admin/edit.php?post_type=tm_members&page=team-master-settings2,0813.1586.5439.99

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 18 options
    • tm_default_designation_color
    • tm_default_color
    • tm_default_btn_color
    • widget_recent-comments
    • can_compress_scripts
    • tm_default_title_color
    • widget_recent-posts
    • tm_default_background_color
    • tm_default_load_more
    • db_upgraded
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/team-master/admin/partials/team-master-admin-display.php
    • > /wp-content/plugins/team-master/public/partials/team-master-member-modal.php
  • 18× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/team-master/admin/team/team-master-vc-shortcode.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/team-master/admin/team/team-master-settings.php:7
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/team-master/admin/team/team-master-vc-shortcode.php on line 14
    • > PHP Notice
      Undefined variable: background in wp-content/plugins/team-master/public/partials/templates/tm_template_4.php on line 2
    • > PHP Notice
      Undefined variable: classes in wp-content/plugins/team-master/public/partials/templates/tm_template_4.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/team-master/public/partials/templates/archive-tm-members.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/team-master/public/partials/templates/single-tm-members.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/team-master/admin/team/team-master-vc-shortcode.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/team-master/public/partials/team-master-public-shortcode.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/team-master/admin/team/team-master-usage.php:7

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 38 tag instead of maximum 10
You can look at the official readme.txt

team-master/team-master.php 92% from 13 tests

"Team Master - A Modern WordPress Team Showcase" version 1.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 184 characters long)

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 detected21,374 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
CSS72,835759,995
SVG41128,902
PHP242457732,071
JavaScript72011406

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity9.40
▷ Minimum class complexity1.00
▷ Maximum class complexity43.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods48
▷ Static methods24.17%
▷ Public methods4389.58%
▷ Protected methods00.00%
▷ Private methods510.42%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
25 PNG files occupy 0.96MB with 0.55MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/img/avatar-300x320.png9.21KB3.66KB▼ 60.27%
public/img/avatar-300x300.png28.54KB8.41KB▼ 70.54%
public/img/avatar-450x640.png23.56KB9.09KB▼ 61.41%
admin/img/icon-32.png2.00KB1.55KB▼ 22.47%
public/img/avatar-400x400.png25.05KB7.05KB▼ 71.87%