72% team-builder-member-showcase

Code Review | Team Builder Member Showcase - Team Slider, Team Grid Design

WordPress plugin Team Builder Member Showcase - Team Slider, Team Grid Design scored72%from 54 tests.

About plugin

  • Plugin page: team-builder-memb...
  • Plugin version: 0.1.4
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.3.2
  • WordPress version: 6.3.1
  • First release: Jan 17, 2020
  • Latest release: Oct 20, 2023
  • Number of updates: 35
  • Update frequency: every 39.3 days
  • Top authors: awordpresslife (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

2,000+ active /41,724 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.11MB] [CPU: ▼4.97ms] Passed 4 tests

This is a short check of server-side resources used by Team Builder Member Showcase - Team Slider, Team Grid Design
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1136.75 ▼5.58
Dashboard /wp-admin3.42 ▲0.1147.46 ▲1.52
Posts /wp-admin/edit.php3.53 ▲0.1744.66 ▼3.06
Add New Post /wp-admin/post-new.php6.00 ▲0.1180.99 ▼10.25
Media Library /wp-admin/upload.php3.34 ▲0.1135.52 ▼0.97
Add Team /wp-admin/post-new.php?post_type=tbms_cpt_name3.4246.72
All Team /wp-admin/edit.php?post_type=tbms_cpt_name3.3432.76

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 43 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
awplife_tbms_plugin_version
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Team Builder Member Showcase - Team Slider, Team Grid Design
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,923 ▲16213.78 ▼0.577.60 ▲5.8037.67 ▼7.84
Dashboard /wp-admin2,222 ▲455.64 ▲0.0796.50 ▲12.0742.67 ▼2.69
Posts /wp-admin/edit.php2,127 ▲271.99 ▼0.0139.57 ▲0.7536.37 ▲1.13
Add New Post /wp-admin/post-new.php1,549 ▲2323.04 ▲0.29639.65 ▼41.4554.50 ▼2.31
Media Library /wp-admin/upload.php1,424 ▲274.13 ▼0.0797.43 ▼8.0944.25 ▲1.03
Add Team /wp-admin/post-new.php?post_type=tbms_cpt_name2,3744.8191.20143.52
All Team /wp-admin/edit.php?post_type=tbms_cpt_name1,1081.9030.3630.80

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • awplife_tbms_plugin_version
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/edit.php?post_type=tbms_cpt_name
    • > Notice in wp-content/plugins/team-builder-member-showcase/team-builder-member-showcase.php+106
    Undefined variable: columns
    • > GET request to /wp-admin/edit.php?post_type=tbms_cpt_name
    • > Notice in wp-content/plugins/team-builder-member-showcase/team-builder-member-showcase.php+106
    Trying to access array offset on value of type null

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 fix the following items
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/team-builder-member-showcase/assets/css/template2.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/team-builder-member-showcase/assets/css/template3.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/team-builder-member-showcase/assets/css/template1.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/team-builder-member-showcase/assets/css/template4.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
    • > GET request to /wp-admin/post-new.php?post_type=tbms_cpt_name
    • > Network (severe)
    wp-content/plugins/team-builder-member-showcase/include/image/template-one.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed: You can look at the official readme.txt

team-builder-member-showcase/team-builder-member-showcase.php 92% from 13 tests

The main PHP script in "Team Builder Member Showcase - Team Slider, Team Grid Design" version 0.1.4 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("3.0" instead of "5.4")

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
Good job! No executable or dangerous file extensions detected23,901 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
CSS61,2461,84715,714
JavaScript69314443,765
SVG2002,959
PHP9101661,249
PO File2115148214

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.41
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods1588.24%
▷ Protected methods211.76%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
5 PNG files occupy 0.39MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
include/image/Untitled-1.png107.35KB38.96KB▼ 63.70%
include/image/template-two.png112.02KB57.82KB▼ 48.38%
include/image/Template-one.png70.25KB43.86KB▼ 37.57%
include/image/close.png1.27KB1.20KB▼ 5.45%
include/image/template-three.png110.36KB45.93KB▼ 58.39%