84% team-members-showcase

Code Review | Team Members Showcase

WordPress plugin Team Members Showcase scored 84% from 54 tests.

About plugin

  • Plugin page: team-members-show...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.0.1
  • WordPress version: 6.3.1
  • First release: Aug 11, 2022
  • Latest release: Aug 11, 2022
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: hasanfardous (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 834 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 gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▲5.27ms] Passed 4 tests

This is a short check of server-side resources used by Team Members Showcase
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1052.33 ▲9.62
Dashboard /wp-admin3.40 ▲0.0953.74 ▲6.43
Posts /wp-admin/edit.php3.49 ▲0.1455.44 ▲9.05
Add New Post /wp-admin/post-new.php6.00 ▲0.1295.91 ▼0.71
Media Library /wp-admin/upload.php3.32 ▲0.0941.88 ▲6.29
All Team Members /wp-admin/edit.php?post_type=team_members3.3542.54
Add New /wp-admin/post-new.php?post_type=team_members3.4451.82
Member Type /wp-admin/edit-tags.php?taxonomy=member_type&post_type=team_members3.3141.14

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
team_members_showcase_version
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Team Members Showcase
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,861 ▲10413.27 ▼1.182.03 ▲0.0242.75 ▼4.48
Dashboard /wp-admin2,237 ▲464.90 ▼1.0198.12 ▼4.0538.74 ▼4.26
Posts /wp-admin/edit.php2,120 ▲341.98 ▼0.0639.01 ▲6.0035.11 ▲2.25
Add New Post /wp-admin/post-new.php1,567 ▲3423.26 ▼0.05673.43 ▼22.9555.65 ▲2.35
Media Library /wp-admin/upload.php1,419 ▲314.23 ▲0.1594.36 ▼9.0645.84 ▼1.00
All Team Members /wp-admin/edit.php?post_type=team_members1,1011.9631.3129.83
Add New /wp-admin/post-new.php?post_type=team_members2,2847.69182.0066.56
Member Type /wp-admin/edit-tags.php?taxonomy=member_type&post_type=team_members1,2902.1326.4628.50

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • team_members_showcase_version

Smoke tests 75% 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/team-members-showcase/includes/shortcode.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/team-members-showcase/includes/get-members.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/team-members-showcase/includes/register-post-and-taxonomies.php:80

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (Creating the page by using the shortcode for displaying two members.), #2 (Displaying two members as we given to shortcode.), #3 (Creating a new member by the 'Team Members' post type with 'WordPress Developer' as Member type taxonomy.), #4 (Display a single member page.), #5 (All Member types custom taxonomy by the 'Team Members' post type.), #6 (Requesting for image position to bottom by the 'img_position="bottom" attribute with the shortcode.), #7 (Images are shwoing to bottom as requested.), #8 (Team Members archive page by clicking the 'See All' button.), #9 (Team Members are mobile friendly too.)
The official readme.txt might help

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

The primary PHP file in "Team Members Showcase" version 1.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Requires PHP: The required version number did not match the one declared in readme.txt ("7.0" instead of "7.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected226 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP52638167
CSS111449
Markdown19010

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin