83% team-showcase

Code Review | Team Showcase

WordPress plugin Team Showcase scored83%from 54 tests.

About plugin

  • Plugin page: team-showcase
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3.2
  • WordPress version: 6.3.1
  • First release: Sep 2, 2016
  • Latest release: Oct 18, 2023
  • Number of updates: 50
  • Update frequency: every 52.2 days
  • Top authors: themepoints (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

4,000+ active /76,109 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.38MB] [CPU: ▼2.02ms] Passed 4 tests

A check of server-side resources used by Team Showcase
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.85 ▲0.3836.28 ▼2.76
Dashboard /wp-admin3.68 ▲0.3747.14 ▼1.39
Posts /wp-admin/edit.php3.80 ▲0.4344.56 ▲0.06
Add New Post /wp-admin/post-new.php6.27 ▲0.3895.59 ▼3.98
Media Library /wp-admin/upload.php3.60 ▲0.3739.39 ▲9.58
Team Showcase Info /wp-admin/options-general.php?page=team-pro-features3.5733.05
Team Groups /wp-admin/edit-tags.php?taxonomy=team_mfcategory&post_type=team_mf3.6056.95
Create Shortcode /wp-admin/post-new.php?post_type=team_mf_team3.6649.95
All Shortcodes /wp-admin/edit.php?post_type=team_mf_team3.6135.63
All Team Members /wp-admin/edit.php?post_type=team_mf3.6132.67
Add New Member /wp-admin/post-new.php?post_type=team_mf3.7456.52

Server storage [IO: ▲1.02MB] [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: 34 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
tpteamshowcase_installed
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Team Showcase
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,943 ▲18213.76 ▼0.809.36 ▲7.8937.47 ▼2.45
Dashboard /wp-admin2,246 ▲655.65 ▼0.0883.40 ▼18.4939.92 ▼4.18
Posts /wp-admin/edit.php2,148 ▲482.03 ▲0.0336.78 ▲2.2636.19 ▼0.78
Add New Post /wp-admin/post-new.php1,575 ▲4723.26 ▲0.49614.80 ▲29.4150.19 ▼9.58
Media Library /wp-admin/upload.php1,445 ▲424.23 ▲0.0496.63 ▼3.5941.93 ▼2.24
Team Showcase Info /wp-admin/options-general.php?page=team-pro-features1,2082.0922.9848.07
Team Groups /wp-admin/edit-tags.php?taxonomy=team_mfcategory&post_type=team_mf1,3222.1228.1331.70
Create Shortcode /wp-admin/post-new.php?post_type=team_mf_team3,5664.09106.1935.41
All Shortcodes /wp-admin/edit.php?post_type=team_mf_team1,1832.5135.6329.11
All Team Members /wp-admin/edit.php?post_type=team_mf1,1551.9429.4530.33
Add New Member /wp-admin/post-new.php?post_type=team_mf2,6027.69167.4464.28

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • tpteamshowcase_installed
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=team_mf
    • > Notice in wp-content/plugins/team-showcase/admin/team-manager-free-post-type.php+382
    Undefined index: order

SRP Passed 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
Congratulations! This plugin passed the SRP test

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tags: You are using too many tags: 18 tag instead of maximum 10
  • Screenshots: Please add images for these screenshots: #14 (screenshot-14), #15 (screenshot-15)
The official readme.txt might help

team-showcase/team-manager-free.php 77% from 13 tests

"Team Showcase" version 2.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("team-showcase.php" instead of "team-manager-free.php")
  • Description: The description should be shorter than 140 characters (currently 198 characters long)
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin7,964 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP102581583,049
CSS640582,454
JavaScript74062921,895
SVG200566

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods2
▷ Static methods2100.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions37
▷ Named functions37100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/img/icons.png0.71KB0.43KB▼ 39.64%