72% our-team-members

Code Review | Our Team Members - Team Members WordPress Plugin

WordPress plugin Our Team Members - Team Members WordPress Plugin scored 72% from 54 tests.

About plugin

  • Plugin page: our-team-members
  • Plugin version: 1.0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Feb 10, 2018
  • Latest release: Aug 9, 2023
  • Number of updates: 18
  • Update frequency: every 112.2 days
  • Top authors: wpbean (100%)

Code review

54 tests

User reviews

1 review

Install metrics

700+ active / 7,942 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

This is a short check of server-side resources used by Our Team Members - Team Members WordPress Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1340.05 ▲0.32
Dashboard /wp-admin3.41 ▲0.1145.84 ▼6.02
Posts /wp-admin/edit.php3.52 ▲0.1745.22 ▼3.20
Add New Post /wp-admin/post-new.php6.02 ▲0.1394.81 ▲1.75
Media Library /wp-admin/upload.php3.33 ▲0.1035.87 ▲2.89
Team Category /wp-admin/edit-tags.php?taxonomy=wpb_team_member_category&post_type=wpb_team_members3.3333.91
Add New Team Member /wp-admin/post-new.php?post_type=wpb_team_members3.4648.42
All Team Members /wp-admin/edit.php?post_type=wpb_team_members3.3835.79
Shortcode Generator /wp-admin/edit.php?post_type=wpb_otm_shortcode3.3834.60

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 297 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Our Team Members - Team Members WordPress Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,873 ▲11613.23 ▼0.702.00 ▲0.0343.20 ▲2.16
Dashboard /wp-admin2,248 ▲575.86 ▼0.0498.30 ▼5.5838.34 ▼4.02
Posts /wp-admin/edit.php2,135 ▲462.14 ▲0.1436.42 ▼4.3235.14 ▼0.37
Add New Post /wp-admin/post-new.php1,622 ▲10821.94 ▲4.33616.84 ▼64.3431.40 ▼38.37
Media Library /wp-admin/upload.php1,434 ▲494.23 ▲0.0198.13 ▼2.1642.84 ▲0.31
Team Category /wp-admin/edit-tags.php?taxonomy=wpb_team_member_category&post_type=wpb_team_members1,3132.2626.3327.98
Add New Team Member /wp-admin/post-new.php?post_type=wpb_team_members2,9618.08209.7968.86
All Team Members /wp-admin/edit.php?post_type=wpb_team_members1,1412.0030.4131.39
Shortcode Generator /wp-admin/edit.php?post_type=wpb_otm_shortcode1,1101.9530.9029.74

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=wpb_team_members
    • > Notice in wp-content/plugins/our-team-members/admin/framework/classes/metabox.php+79
    Trying to access array offset on value of type bool

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/our-team-members/admin/framework/templates/settings/modern/footer.php
    • > /wp-content/plugins/our-team-members/admin/framework/templates/settings/global/footer.php
    • > /wp-content/plugins/our-team-members/admin/framework/templates/settings/global/header.php
  • 27× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: class in wp-content/plugins/our-team-members/admin/framework/templates/settings/modern/body.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to a member function is_sticky_header() on null in wp-content/plugins/our-team-members/admin/framework/templates/settings/modern/header.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wpb_otm_get_post_meta() in wp-content/plugins/our-team-members/templates/skin-default.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function shortcode_atts() in wp-content/plugins/our-team-members/templates/shortcode.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/our-team-members/inc/wpb_scripts.php:24
    • > PHP Notice
      Undefined variable: title in wp-content/plugins/our-team-members/admin/framework/templates/settings/simple/header.php on line 1
    • > PHP Notice
      Undefined variable: theme in wp-content/plugins/our-team-members/admin/framework/templates/settings/global/header.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_settings_buttons() on null in wp-content/plugins/our-team-members/admin/framework/templates/settings/simple/footer.php:7
    • > PHP Fatal error
      Uncaught Error: Call to a member function html_content() on null in wp-content/plugins/our-team-members/admin/framework/templates/settings/simple/body.php:1
    • > PHP Fatal error
      Uncaught Error: Call to a member function html_nav_bar() on null in wp-content/plugins/our-team-members/admin/framework/templates/settings/simple/header.php:3

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, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: Too many tags (30 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

our-team-members/main.php 92% from 13 tests

The entry point to "Our Team Members - Team Members WordPress Plugin" version 1.0.9 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("our-team-members.php" instead of "main.php")

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
There were no executable files found in this plugin28,118 lines of code in 136 files:
LanguageFilesBlank linesComment linesLines of code
CSS212,31125111,045
JavaScript271,9835797,365
PHP711,0119684,504
SVG2032,758
Sass634901,739
PO File7306334705
JSON2002

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity16.27
▷ Minimum class complexity1.00
▷ Maximum class complexity161.00
Average method complexity4.28
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes40
▷ Abstract classes25.00%
▷ Concrete classes3895.00%
▷ Final classes00.00%
Methods186
▷ Static methods31.61%
▷ Public methods16287.10%
▷ Protected methods42.15%
▷ Private methods2010.75%
Functions66
▷ Named functions66100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.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
135 PNG files occupy 0.33MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/framework/assets/vendors/icheck/themes/square-red.png2.14KB1.83KB▼ 14.52%
admin/framework/assets/css/themes/square-green.png2.14KB1.83KB▼ 14.55%
admin/framework/assets/css/themes/square-purple@2x.png4.40KB3.06KB▼ 30.39%
admin/framework/assets/css/themes/polaris@2x.png16.37KB6.77KB▼ 58.66%
admin/framework/assets/css/themes/flat-flat@2x.png3.14KB2.83KB▼ 10.04%