84% profile-tabs-for-ultimate-member

Code Review | Ultimate Member Profile Tabs

WordPress plugin Ultimate Member Profile Tabs scored84%from 54 tests.

About plugin

  • Plugin page: profile-tabs-for-...
  • Plugin version: 2.1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.9.7
  • WordPress version: 6.3.1
  • First release: Nov 2, 2015
  • Latest release: Jul 27, 2018
  • Number of updates: 42
  • Update frequency: every 23.8 days
  • Top authors: plusplugins (97.62%)wpdelighter (4.76%)

Code review

54 tests

User reviews

16 reviews

Install metrics

1,000+ active /39,751 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.02MB] [CPU: ▼5.11ms] Passed 4 tests

Analyzing server-side resources used by Ultimate Member Profile Tabs
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.08 ▼8.87
Dashboard /wp-admin3.32 ▲0.0254.44 ▲5.41
Posts /wp-admin/edit.php3.37 ▲0.0251.07 ▲4.36
Add New Post /wp-admin/post-new.php5.90 ▲0.0287.59 ▼10.80
Media Library /wp-admin/upload.php3.25 ▲0.0235.19 ▼5.11

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 119 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Ultimate Member Profile Tabs
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲9913.37 ▼0.932.00 ▲0.0142.21 ▼5.55
Dashboard /wp-admin2,209 ▲215.80 ▼0.06104.40 ▼12.5538.81 ▼13.83
Posts /wp-admin/edit.php2,097 ▲82.05 ▲0.0443.73 ▲7.5536.56 ▲1.66
Add New Post /wp-admin/post-new.php1,523 ▲917.61 ▼0.02666.95 ▼32.1456.39 ▼0.78
Media Library /wp-admin/upload.php1,400 ▲124.27 ▲0.0697.83 ▼6.2142.54 ▼0.27

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
  • 4× 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/profile-tabs-for-ultimate-member/init.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/profile-tabs-for-ultimate-member/includes/cmb_field_select2/cmb-field-select2.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/profile-tabs-for-ultimate-member/includes/cmb2/init.php:119
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/profile-tabs-for-ultimate-member/pp-tabs.php:13

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

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
You can take inspiration from this readme.txt

profile-tabs-for-ultimate-member/pp-tabs.php 92% from 13 tests

This is the main PHP file of "Ultimate Member Profile Tabs" version 2.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
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 ("profile-tabs-for-ultimate-member.php" instead of "pp-tabs.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
Good job! No executable or dangerous file extensions detected12,696 lines of code in 87 files:
LanguageFilesBlank linesComment linesLines of code
CSS71,1481,0434,940
JavaScript518287283,967
PHP211,0772,2533,415
JSON500159
PO File1293288
Markdown127072
Bourne Shell124055

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity38.76
▷ Minimum class complexity2.00
▷ Maximum class complexity130.00
Average method complexity3.68
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes00.00%
Methods233
▷ Static methods229.44%
▷ Public methods22194.85%
▷ Protected methods93.86%
▷ Private methods31.29%
Functions27
▷ Named functions2488.89%
▷ Anonymous functions311.11%
Constants10
▷ Global constants880.00%
▷ Class constants220.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
18 PNG files occupy 0.14MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png89.27KB26.50KB▼ 70.32%
assets/screenshot-2.png24.16KB7.77KB▼ 67.82%
includes/cmb_field_select2/js/select2/select2x2.png0.83KB0.77KB▼ 6.15%
includes/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.10KB0.17KB0.00%
includes/cmb2/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%