10% ultimate-team-showcase

Code Review | WP Ultimate Team Showcase Plugin

WordPress plugin WP Ultimate Team Showcase Plugin scored10%from 54 tests.

About plugin

  • Plugin page: ultimate-team-sho...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3.1
  • WordPress version: 6.3.1
  • First release: Jul 22, 2022
  • Latest release: Sep 8, 2023
  • Number of updates: 6
  • Update frequency: every 69.5 days
  • Top authors: rstheme2017 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /432 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/ultimate-team-showcase/includes/template.php+226
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.86MB] [CPU: ▼55.48ms] Passed 4 tests

This is a short check of server-side resources used by WP Ultimate Team Showcase Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.13 ▼1.336.06 ▼39.99
Dashboard /wp-admin2.15 ▼1.167.24 ▼46.78
Posts /wp-admin/edit.php2.15 ▼1.217.33 ▼43.45
Add New Post /wp-admin/post-new.php2.15 ▼3.746.30 ▼91.71
Media Library /wp-admin/upload.php2.15 ▼1.086.35 ▼29.41
Settings /wp-admin/edit.php?post_type=wp_uteam&page=uteamsettings2.157.14
All Teams /wp-admin/edit.php?post_type=wp_uteam2.158.32
All Shortcodes /wp-admin/edit.php?post_type=wp_uteam_settings2.157.71
Team Categories /wp-admin/edit-tags.php?taxonomy=wp-uteam-category&post_type=wp_uteam2.167.38
Add New Team /wp-admin/post-new.php?post_type=wp_uteam2.157.55
Create Shortcode /wp-admin/post-new.php?post_type=wp_uteam_settings2.158.50

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 158 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Ultimate Team Showcase Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,012 ▲27714.13 ▼0.6310.14 ▲7.8843.65 ▼0.18
Dashboard /wp-admin2,272 ▲845.25 ▲0.31121.35 ▲8.45105.31 ▲63.00
Posts /wp-admin/edit.php2,175 ▲892.42 ▲0.4038.48 ▲0.1934.07 ▼0.14
Add New Post /wp-admin/post-new.php1,743 ▲20522.79 ▼0.59725.45 ▲77.7434.26 ▼47.31
Media Library /wp-admin/upload.php1,457 ▲664.63 ▲0.38105.30 ▼3.25101.01 ▲54.63
Settings /wp-admin/edit.php?post_type=wp_uteam&page=uteamsettings1,7292.7481.04139.47
All Teams /wp-admin/edit.php?post_type=wp_uteam1,1452.5341.8041.20
All Shortcodes /wp-admin/edit.php?post_type=wp_uteam_settings1,1232.5053.2233.92
Team Categories /wp-admin/edit-tags.php?taxonomy=wp-uteam-category&post_type=wp_uteam1,3502.1537.3433.53
Add New Team /wp-admin/post-new.php?post_type=wp_uteam2,6628.09197.73155.19
Create Shortcode /wp-admin/post-new.php?post_type=wp_uteam_settings4,6583.66228.5196.91

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/ultimate-team-showcase/includes/template.php+226
    Trying to access array offset on value of type bool
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=wp_uteam_settings
    • > Notice in wp-content/plugins/ultimate-team-showcase/includes/template.php+226
    Trying to access array offset on value of type bool
  • 25 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=wp_uteam_settings
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+204
    Undefined offset: 0
  • 25 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=wp_uteam_settings
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+205
    Trying to get property 'guid' of non-object
  • 100 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=wp_uteam_settings
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+221
    Trying to get property 'ID' of non-object
  • 25 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=wp_uteam_settings
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+222
    Trying to get property 'post_title' of non-object
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit-tags.php?taxonomy=wp-uteam-category&post_type=wp_uteam
    • > Notice in wp-content/plugins/ultimate-team-showcase/includes/metabox/custom/includes/RSTHEME.php+992
    Undefined index: tag_ID

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
Almost there! Just fix the following items
  • 67× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'RSTHEME_Base' not found in wp-content/plugins/ultimate-team-showcase/includes/metabox/custom/includes/RSTHEME_Field.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/ultimate-team-showcase/includes/view/slider2.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'RSTHEME_Type_Taxonomy_Base' not found in wp-content/plugins/ultimate-team-showcase/includes/metabox/custom/includes/types/RSTHEME_Type_Taxonomy_Select.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'RSTHEME_Type_Text' not found in wp-content/plugins/ultimate-team-showcase/includes/metabox/custom/includes/types/RSTHEME_Type_Oembed.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'RSTHEME_Hookup_Base' not found in wp-content/plugins/ultimate-team-showcase/includes/metabox/custom/includes/rest-api/RSTHEME_REST.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'RSTHEME_Type_Multi_Base' not found in wp-content/plugins/ultimate-team-showcase/includes/metabox/custom/includes/types/RSTHEME_Type_Taxonomy_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'RSTHEME_Type_Text' not found in wp-content/plugins/ultimate-team-showcase/includes/metabox/custom/includes/types/RSTHEME_Type_Checkbox.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'RSTHEME_Type_Textarea' not found in wp-content/plugins/ultimate-team-showcase/includes/metabox/custom/includes/types/RSTHEME_Type_Wysiwyg.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/ultimate-team-showcase/includes/single_team.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/ultimate-team-showcase/includes/view/slider4.php:4

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
  • 18 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=wp_uteam_settings
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
    wpColorPickerL10n.defaultLabel is deprecated since version 5.5.0! Use wp.i18n instead.
  • 18 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=wp_uteam_settings
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
    wpColorPickerL10n.pick is deprecated since version 5.5.0! Use wp.i18n instead.
  • 18 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=wp_uteam_settings
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
    wpColorPickerL10n.clear is deprecated since version 5.5.0! Use wp.i18n instead.
  • 18 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=wp_uteam_settings
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
    wpColorPickerL10n.clearAriaLabel is deprecated since version 5.5.0! Use wp.i18n instead.

Optimizations

Plugin configuration 90% 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
Attributes that need to be fixed:
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

ultimate-team-showcase/wp_ultimate_team.php 85% from 13 tests

The primary PHP file in "WP Ultimate Team Showcase Plugin" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("ultimate-team-showcase.php" instead of "wp_ultimate_team.php")

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
Success! There were no dangerous files found in this plugin28,605 lines of code in 114 files:
LanguageFilesBlank linesComment linesLines of code
CSS211,3241,30613,092
PHP792,3885,87210,449
SVG2002,690
JavaScript125696582,374

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity18.36
▷ Minimum class complexity1.00
▷ Maximum class complexity180.00
Average method complexity3.24
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes67
▷ Abstract classes811.94%
▷ Concrete classes5988.06%
▷ Final classes00.00%
Methods522
▷ Static methods8616.48%
▷ Public methods43082.38%
▷ Protected methods8917.05%
▷ Private methods30.57%
Functions79
▷ Named functions79100.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants853.33%
▷ Class constants746.67%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
20 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/metabox/custom/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
includes/metabox/custom/images/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%
includes/metabox/custom/images/ui-bg_glass_55_fbf9ee_1x400.png0.12KB0.14KB0.00%
includes/metabox/custom/images/ico-delete.png0.70KB0.72KB0.00%
includes/metabox/custom/images/ui-bg_flat_0_aaaaaa_40x100.png0.18KB0.08KB▼ 51.67%