78% teampresslite

Code Review | Team Members Showcase

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

About plugin

  • Plugin page: teampresslite
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8.1
  • WordPress version: 5.8.1
  • First release: Mar 18, 2019
  • Latest release: Oct 29, 2021
  • Number of updates: 12
  • Update frequency: every 80.6 days
  • Top authors: exthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 2,193 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲1.14MB] [CPU: ▼138.49ms] Passed 4 tests

A check of server-side resources used by Team Members Showcase
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.8047.86 ▲10.18
Dashboard /wp-admin4.37 ▲1.3264.91 ▲18.53
Posts /wp-admin/edit.php4.40 ▲1.2958.83 ▲7.47
Add New Post /wp-admin/post-new.php6.66 ▲1.22103.45 ▼578.97
Media Library /wp-admin/upload.php4.25 ▲1.2544.60 ▲7.37
Categories /wp-admin/edit-tags.php?taxonomy=extp_cat&post_type=ex_team4.2643.40
Members /wp-admin/edit.php?post_type=ex_team4.3645.78
/wp-admin/edit.php?post_type=ex_team&page=extp_js_css_file_options4.5242.80
Shortcodes builder /wp-admin/edit.php?post_type=team_scbd4.3639.06
Add New Member /wp-admin/post-new.php?post_type=ex_team4.8166.72
Settings /wp-admin/edit.php?post_type=ex_team&page=extp_options4.5853.13
Help /wp-admin/edit.php?post_type=ex_team&page=extp_helps4.2341.53
/wp-admin/edit.php?post_type=ex_team&page=extp_custom_code_options4.5241.80

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 401 new files
Database: no new tables, 1 new option
New WordPress options
widget_extp-widget

Browser metrics Passed 4 tests

Team Members Showcase: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,913 ▲31716.70 ▲0.8215.71 ▲7.0655.06 ▲4.39
Dashboard /wp-admin3,048 ▲1146.23 ▲0.24145.40 ▼12.04114.09 ▼6.48
Posts /wp-admin/edit.php2,818 ▲792.75 ▲0.0772.71 ▼4.7792.97 ▲3.49
Add New Post /wp-admin/post-new.php1,553 ▼3818.39 ▼0.36379.03 ▼8.90117.78 ▼9.88
Media Library /wp-admin/upload.php1,889 ▲825.10 ▲0.09151.77 ▼7.36126.72 ▲2.23
Categories /wp-admin/edit-tags.php?taxonomy=extp_cat&post_type=ex_team1,8322.5870.2784.94
Members /wp-admin/edit.php?post_type=ex_team1,5482.7974.3386.24
/wp-admin/edit.php?post_type=ex_team&page=extp_js_css_file_options1,2152.3662.8480.04
Shortcodes builder /wp-admin/edit.php?post_type=team_scbd1,5022.6566.0382.73
Add New Member /wp-admin/post-new.php?post_type=ex_team4,4029.43254.33169.63
Settings /wp-admin/edit.php?post_type=ex_team&page=extp_options2,4053.5996.5985.42
Help /wp-admin/edit.php?post_type=ex_team&page=extp_helps1,5702.3760.20135.94
/wp-admin/edit.php?post_type=ex_team&page=extp_custom_code_options1,4084.82111.8290.33

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 1 option
    • widget_extp-widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/teampresslite/admin/extp-help.php
  • 57× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/teampresslite/admin/inc/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/teampresslite/admin/inc/cmb2/includes/types/CMB2_Type_Taxonomy_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/teampresslite/admin/inc/cmb2/includes/types/CMB2_Type_Oembed.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/teampresslite/admin/inc/cmb2/init.php:127
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/teampresslite/admin/inc/cmb2/includes/rest-api/CMB2_REST.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/teampresslite/inc/widgets/teampress.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ex_teampress_customlink() in wp-content/plugins/teampresslite/templates/content-shortcodes/content-grid-6.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/teampresslite/admin/inc/cmb2/includes/types/CMB2_Type_File_List.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/teampresslite/admin/inc/cmb2/includes/CMB2.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/teampresslite/admin/inc/cmb2/includes/types/CMB2_Type_Textarea_Code.php:13

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 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
The official readme.txt might help

teampresslite/teampress.php 92% from 13 tests

"Team Members Showcase" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("teampresslite.php" instead of "teampress.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin58,011 lines of code in 241 files:
LanguageFilesBlank linesComment linesLines of code
PO File12114,09718,54132,262
PHP742,0625,8089,360
CSS211,2361,1815,875
SVG41124,219
JavaScript131,1625093,922
XML19161,343
Markdown32090612
Sass2275260
LESS1135150
Ruby1208

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity18.41
▷ Minimum class complexity1.00
▷ Maximum class complexity181.00
Average method complexity3.28
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes70
▷ Abstract classes811.43%
▷ Concrete classes6288.57%
▷ Final classes00.00%
Methods538
▷ Static methods8615.99%
▷ Public methods44682.90%
▷ Protected methods8916.54%
▷ Private methods30.56%
Functions60
▷ Named functions5998.33%
▷ Anonymous functions11.67%
Constants10
▷ Global constants440.00%
▷ Class constants660.00%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
15 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/inc/cmb2/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%
admin/inc/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.10KB0.17KB0.00%
admin/inc/cmb2/images/ui-bg_glass_55_fbf9ee_1x400.png0.12KB0.14KB0.00%
admin/inc/cmb2/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
admin/inc/cmb2/images/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%