78% ultra-community

Code Review | Ultra Community

WordPress plugin Ultra Community scored78%from 54 tests.

About plugin

  • Plugin page: ultra-community
  • Plugin version: 2.1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.4
  • WordPress version: 6.3.1
  • First release: Apr 6, 2017
  • Latest release: May 15, 2020
  • Number of updates: 116
  • Update frequency: every 9.8 days
  • Top authors: ultrateam (100%)

Code review

54 tests

User reviews

30 reviews

Install metrics

90+ active /15,361 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲4.84MB] [CPU: ▲31.13ms] Passed 4 tests

Analyzing server-side resources used by Ultra Community
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /7.01 ▲3.5464.71 ▲22.38
Dashboard /wp-admin8.55 ▲5.2480.96 ▲29.34
Posts /wp-admin/edit.php8.65 ▲5.2978.50 ▲27.10
Add New Post /wp-admin/post-new.php11.17 ▲5.28136.62 ▲47.39
Media Library /wp-admin/upload.php8.51 ▲5.2781.52 ▲45.69
Forms /wp-admin/admin.php?page=uc-forms-formsadminpage8.5072.43
Directories /wp-admin/admin.php?page=uc-directories-directoriesadminpage8.7274.89
Appearance /wp-admin/admin.php?page=uc-appearance-appearanceadminpage8.5071.96
General Settings /wp-admin/admin.php?page=uc-general-settings-generalsettingsadminpage8.5475.49
Extensions /wp-admin/admin.php?page=uc-extensions-extensionsadminpage8.5066.73
User Roles /wp-admin/admin.php?page=uc-user-roles-userroleadminpage8.5171.30

Server storage [IO: ▲11.70MB] [DB: ▲0.03MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 914 new files
Database: 4 new tables, 26 new options
New tables
wp_uc_user_relations
wp_uc_user_activity_reposts
wp_uc_group_users
wp_uc_user_activity
New WordPress options
uc-usersettings
uc-loginform-cpt-17-settings
can_compress_scripts
uc-forgotpasswordform-cpt-19-settings
widget_recent-posts
widget_recent-comments
uc-userrole-cpt-9-settings
uc-groupprofileappearance-settings
widget_theysaidso_widget
db_upgraded
...

Browser metrics Passed 4 tests

Ultra Community: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,863 ▲12813.31 ▼1.001.98 ▼0.2141.66 ▼9.04
Dashboard /wp-admin2,234 ▲465.83 ▲0.94103.81 ▼9.0681.27 ▲43.25
Posts /wp-admin/edit.php2,138 ▲491.99 ▼0.0035.09 ▼5.3134.01 ▼2.48
Add New Post /wp-admin/post-new.php1,551 ▲1823.39 ▲0.25622.75 ▲1.9662.24 ▲10.18
Media Library /wp-admin/upload.php1,428 ▲434.19 ▼0.0794.32 ▼7.8474.24 ▲32.25
Forms /wp-admin/admin.php?page=uc-forms-formsadminpage6,6185.64166.77137.55
Directories /wp-admin/admin.php?page=uc-directories-directoriesadminpage6,4306.46137.5689.21
Appearance /wp-admin/admin.php?page=uc-appearance-appearanceadminpage6,7966.28153.1572.50
General Settings /wp-admin/admin.php?page=uc-general-settings-generalsettingsadminpage6,4226.37129.4372.26
Extensions /wp-admin/admin.php?page=uc-extensions-extensionsadminpage5,9325.4488.8385.02
User Roles /wp-admin/admin.php?page=uc-user-roles-userroleadminpage6,1796.44112.2569.22

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • ultracomm-online-users
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Please fix the following
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/ultra-community/templates/front-pages/group-profile/group-profile-page-members.php
    • > /wp-content/plugins/ultra-community/templates/emails/default/email-base-layout.php
  • 123× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'UltraCommunity\\Modules\\Forms\\FormFields\\BaseField' not found in wp-content/plugins/ultra-community/engine/Modules/Forms/FormFields/UserLastNameField.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'UltraCommunity\\Modules\\BaseAdminModule' not found in wp-content/plugins/ultra-community/engine/Modules/Appearance/UserProfile/UserProfileAppearanceAdminModule.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'UltraCommunity\\UltraCommHelper' not found in wp-content/plugins/ultra-community/templates/front-pages/activity/activity-post-form.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'UltraCommunity\\Modules\\Forms\\FormFields\\BaseField' not found in wp-content/plugins/ultra-community/engine/Modules/Forms/FormFields/SocialNetworkUrlField.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'UltraCommunity\\Modules\\Forms\\FormFields\\BaseField' not found in wp-content/plugins/ultra-community/engine/Modules/Forms/FormFields/RadioButtonField.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'UltraCommunity\\Admin\\Pages\\BaseAdminPage' not found in wp-content/plugins/ultra-community/engine/Admin/Pages/MembersDirectoryAdminPage.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'UltraCommunity\\Modules\\Forms\\FormFields\\BaseField' not found in wp-content/plugins/ultra-community/engine/Modules/Forms/FormFields/CountryField.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'UltraCommunity\\Modules\\BasePublicModule' not found in wp-content/plugins/ultra-community/engine/Modules/Appearance/Directories/DirectoriesAppearancePublicModule.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'UltraCommunity\\Admin\\Pages\\BaseAdminPage' not found in wp-content/plugins/ultra-community/engine/Admin/Pages/UserRoleAdminPage.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'UltraCommunity\\Modules\\Forms\\FormFields\\BaseField' not found in wp-content/plugins/ultra-community/engine/Modules/Forms/FormFields/TextField.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: login form, registration form, membership, members directory, community...

ultra-community/ultra-community.php Passed 13 tests

The main file in "Ultra Community" v. 2.1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
39 characters long description:
An extremely powerful community plugin.

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
Everything looks great! No dangerous files found in this plugin99,201 lines of code in 854 files:
LanguageFilesBlank linesComment linesLines of code
PHP25312,3053,60039,904
SVG52811138,951
CSS401,40247112,409
JavaScript331,6481,0457,937

PHP code Passed 2 tests

Analyzing 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.45
Average class complexity27.36
▷ Minimum class complexity1.00
▷ Maximum class complexity313.00
Average method complexity3.71
▷ Minimum method complexity1.00
▷ Maximum method complexity99.00
Code structure
Namespaces37
Interfaces1
Traits0
Classes190
▷ Abstract classes189.47%
▷ Concrete classes17290.53%
▷ Final classes3017.44%
Methods1,643
▷ Static methods85151.80%
▷ Public methods1,31980.28%
▷ Protected methods1358.22%
▷ Private methods18911.50%
Functions191
▷ Named functions2010.47%
▷ Anonymous functions17189.53%
Constants654
▷ Global constants00.00%
▷ Class constants654100.00%
▷ Public constants654100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
26 PNG files occupy 0.92MB with 0.44MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/light-gallery/video-play.png4.42KB1.05KB▼ 76.27%
assets/admin/images/social-login.png12.26KB6.20KB▼ 49.45%
assets/admin/images/user-letters-avatar.png26.94KB11.67KB▼ 56.68%
assets/admin/images/social-share.png33.66KB14.45KB▼ 57.07%
assets/images/payment-method-credit-card.png6.11KB6.35KB0.00%