62% total-team-lite

Code Review | Total Team Lite - Responsive Team Manager / Showcase Plugin for WordPress

WordPress plugin Total Team Lite - Responsive Team Manager / Showcase Plugin for WordPress scored 62% from 54 tests.

About plugin

  • Plugin page: total-team-lite
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.4.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.8
  • WordPress version: 5.9.2
  • First release: Feb 23, 2018
  • Latest release: Nov 2, 2021
  • Number of updates: 20
  • Update frequency: every 67.5 days
  • Top authors: Access Keys (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

800+ active / 8,821 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼289.10ms] Passed 4 tests

Analyzing server-side resources used by Total Team Lite - Responsive Team Manager / Showcase Plugin for WordPress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.1853.79 ▲2.65
Dashboard /wp-admin3.56 ▲0.1638.63 ▲6.96
Posts /wp-admin/edit.php3.78 ▲0.1442.90 ▲3.81
Add New Post /wp-admin/post-new.php7.00 ▲0.0498.32 ▼1,157.81
Media Library /wp-admin/upload.php3.50 ▲0.1925.97 ▼5.04
Team Members /wp-admin/edit.php?post_type=totalteam3.5637.49
How To Use /wp-admin/edit.php?post_type=totalteam&page=totalteam-how-to3.5027.06
More WorPress Stuffs /wp-admin/edit.php?post_type=totalteam&page=totalteam-about-us3.5028.25
Add New Member /wp-admin/post-new.php?post_type=totalteam3.8545.55
Shortcode Generator /wp-admin/edit.php?post_type=totalteam&page=totalteam-shortcode-generator3.5031.08
Team Category /wp-admin/edit-tags.php?taxonomy=totalteam_taxonomy&post_type=totalteam3.5731.34

Server storage [IO: ▲4.82MB] [DB: ▲0.02MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 104 new files
Database: 1 new table, 2 new options
New tables
wp_ttp_custom_design_template_table
New WordPress options
ttp_typography
widget_totalteam_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Total Team Lite - Responsive Team Manager / Showcase Plugin for WordPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /5,888 ▲2,16618.71 ▲2.9211.96 ▲6.352.49 ▲0.33
Dashboard /wp-admin4,559 ▲1,6987.86 ▲1.66154.83 ▲21.24173.54 ▲10.08
Posts /wp-admin/edit.php4,388 ▲1,6945.45 ▲2.2287.86 ▲24.20164.09 ▲27.88
Add New Post /wp-admin/post-new.php2,691 ▲93118.13 ▲1.10344.41 ▼116.96186.41 ▲26.73
Media Library /wp-admin/upload.php3,173 ▲1,4756.42 ▲0.90113.14 ▼27.42192.50 ▼2.88
Team Members /wp-admin/edit.php?post_type=totalteam3,1155.2986.02120.13
How To Use /wp-admin/edit.php?post_type=totalteam&page=totalteam-how-to2,9595.2779.76125.33
More WorPress Stuffs /wp-admin/edit.php?post_type=totalteam&page=totalteam-about-us3,1209.47151.38174.76
Add New Member /wp-admin/post-new.php?post_type=totalteam4,75310.43200.17214.38
Shortcode Generator /wp-admin/edit.php?post_type=totalteam&page=totalteam-shortcode-generator4,0635.2479.36144.67
Team Category /wp-admin/edit-tags.php?taxonomy=totalteam_taxonomy&post_type=totalteam3,3375.2783.32123.65

Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% 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 1 table in the database
    • wp_ttp_custom_design_template_table
  • Zombie WordPress options were found after uninstall: 2 options
    • widget_totalteam_widget
    • ttp_typography

Smoke tests 25% 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)
Everything seems fine, however this is by no means an exhaustive test

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 fix the following items
  • 32× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/total-team-lite/inc/frontend/custom/custom-list-layout-design.php
    • > /wp-content/plugins/total-team-lite/inc/frontend/totalteam-widget-frontend.php
    • > /wp-content/plugins/total-team-lite/inc/backend/setting-fields/meta-ind-setting/totalteam-skills-settings.php
    • > /wp-content/plugins/total-team-lite/inc/backend/setting-fields/shortcode-generator-secondary.php
    • > /wp-content/plugins/total-team-lite/inc/backend/setting-fields/about.php
    • > /wp-content/plugins/total-team-lite/inc/backend/includes/header.php
    • > /wp-content/plugins/total-team-lite/inc/backend/setting-fields/meta-ind-setting/totalteam-grid-thumbnail-settings.php
    • > /wp-content/plugins/total-team-lite/inc/frontend/custom/popup-slide-out-custom.php
    • > /wp-content/plugins/total-team-lite/inc/backend/includes/totalteam-widget.php
    • > /wp-content/plugins/total-team-lite/inc/frontend/carousal-layout-template.php
  • 25× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/total-team-lite/inc/backend/setting-fields/shortcode-ind-setting/totalteam-shortcode-field-list.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/total-team-lite/inc/backend/setting-fields/shortcode-ind-setting/totalteam-shortcode-field-general.php:6
    • > PHP Warning
      include(): Failed opening 'TOTAL_TEAM_PRO_FILE_ROOT_DIRinc/frontend/custom/popup-slide-out-custom.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/total-team-lite/inc/frontend/custom/custom-list-layout-design.php on line 334
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/total-team-lite/inc/tt-block/tt-block-init.php:20
    • > PHP Warning
      include(TOTAL_TEAM_PRO_FILE_ROOT_DIRinc/frontend/custom/popup-slide-out-custom.php): failed to open stream: No such file or directory in wp-content/plugins/total-team-lite/inc/frontend/custom/custom-layout-design.php on line 581
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/total-team-lite/inc/backend/setting-fields/shortcode-ind-setting/totalteam-shortcode-field-grid.php:3
    • > PHP Warning
      include(TOTAL_TEAM_PRO_FILE_ROOT_DIRinc/frontend/custom/popup-slide-out-custom.php): failed to open stream: No such file or directory in wp-content/plugins/total-team-lite/inc/frontend/custom/custom-carous-flip-layout-design.php on line 358
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/total-team-lite/inc/backend/setting-fields/shortcode-ind-setting/totalteam-shortcode-field-carousal.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/total-team-lite/inc/frontend/content/popup.php:2
    • > PHP Warning
      include(TOTAL_TEAM_PRO_FILE_ROOT_DIRinc/frontend/custom/popup-slide-out-custom.php): failed to open stream: No such file or directory in wp-content/plugins/total-team-lite/inc/frontend/custom/custom-list-layout-design.php on line 334

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/edit-tags.php?taxonomy=totalteam_taxonomy&post_type=totalteam
    • > Javascript (severe) in unknown
    /wp-content/plugins/total-team-lite/assets/js/wp-color-picker-alpha.js?ver=1.1.2 23:16 Uncaught ReferenceError: wpColorPickerL10n is not defined

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Tags: There are too many tags (11 tag instead of maximum 10)
Please take inspiration from this readme.txt

total-team-lite/total-team-lite.php 92% from 13 tests

This is the main PHP file of "Total Team Lite - Responsive Team Manager / Showcase Plugin for WordPress" version 1.1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist

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
Everything looks great! No dangerous files found in this plugin30,887 lines of code in 65 files:
LanguageFilesBlank linesComment linesLines of code
CSS112,87952919,588
PHP422056524,970
JavaScript117151,0163,658
SVG1002,671

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity93.00
▷ Minimum class complexity62.00
▷ Maximum class complexity124.00
Average method complexity4.91
▷ Minimum method complexity1.00
▷ Maximum method complexity83.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods47
▷ Static methods00.00%
▷ Public methods47100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
16 PNG files occupy 1.40MB with 0.72MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/total-team-lite-logo.png12.09KB4.57KB▼ 62.24%
assets/css/images/controls.png1.23KB1.28KB0.00%
assets/images/logo.png5.79KB4.02KB▼ 30.51%
assets/images/total-team-upgrade-to-pro-feature.png775.25KB25.50KB▼ 96.71%
assets/images/theme.png52.01KB17.38KB▼ 66.59%