84% showcase-your-team

Code Review | Showcase Your Team

WordPress plugin Showcase Your Team scored84%from 54 tests.

About plugin

  • Plugin page: showcase-your-team
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.6-6.3
  • WordPress version: 6.3.1
  • First release: Apr 28, 2020
  • Latest release: Sep 5, 2023
  • Number of updates: 9
  • Update frequency: every 136.1 days
  • Top authors: tishonator (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /946 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.12MB] [CPU: ▼9.27ms] Passed 4 tests

An overview of server-side resources used by Showcase Your Team
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1343.82 ▲2.21
Dashboard /wp-admin3.42 ▲0.0850.42 ▼16.54
Posts /wp-admin/edit.php3.53 ▲0.1848.01 ▲2.54
Add New Post /wp-admin/post-new.php6.09 ▲0.2083.25 ▼19.92
Media Library /wp-admin/upload.php3.34 ▲0.1237.09 ▼2.84
Team Members /wp-admin/edit.php?post_type=teammember3.3936.10
Add New /wp-admin/post-new.php?post_type=teammember6.0878.37

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_tishonator-sytp-display-teammembers
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Showcase Your Team
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,910 ▲14913.39 ▼1.148.23 ▲6.4942.36 ▼0.27
Dashboard /wp-admin2,216 ▲365.54 ▼0.1291.33 ▼18.8538.00 ▼8.92
Posts /wp-admin/edit.php2,127 ▲302.03 ▲0.0833.68 ▼2.9034.51 ▼4.08
Add New Post /wp-admin/post-new.php6,226 ▲4,68919.08 ▲0.69961.76 ▲293.8262.40 ▼12.25
Media Library /wp-admin/upload.php1,427 ▲274.08 ▼0.18101.15 ▼5.7042.99 ▲1.00
Team Members /wp-admin/edit.php?post_type=teammember1,0871.9731.6030.52
Add New /wp-admin/post-new.php?post_type=teammember1,64116.79819.2034.21

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_tishonator-sytp-display-teammembers
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/showcase-your-team/team-members-widget.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/showcase-your-team/team-members-widget.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/showcase-your-team/single-teammember.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: team members, showcase your team, meet the team, people, staff

showcase-your-team/showcase-your-team.php 92% from 13 tests

"Showcase Your Team" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 213 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected3,582 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS363152,401
SVG100655
PHP317077469
JavaScript219057

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity26.00
▷ Minimum class complexity17.00
▷ Maximum class complexity35.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods20
▷ Static methods15.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin