84% um-custom-tab-builder-lite

Code Review | Ultimate Member Custom Tab Builder Lite

WordPress plugin Ultimate Member Custom Tab Builder Lite scored84%from 54 tests.

About plugin

  • Plugin page: um-custom-tab-bui...
  • Plugin version: 1.0.4.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2
  • WordPress version: 6.3.1
  • First release: Dec 23, 2018
  • Latest release: Apr 21, 2023
  • Number of updates: 12
  • Update frequency: every 131.7 days
  • Top authors: suiteplugins (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

600+ active /9,987 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: ▲0.00MB] [CPU: ▼3.55ms] Passed 4 tests

Server-side resources used by Ultimate Member Custom Tab Builder Lite
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.12 ▼1.40
Dashboard /wp-admin3.31 ▲0.0054.29 ▲10.48
Posts /wp-admin/edit.php3.36 ▲0.0048.25 ▲2.46
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.61 ▼18.91
Media Library /wp-admin/upload.php3.23 ▲0.0035.40 ▲3.65

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 380 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Ultimate Member Custom Tab Builder Lite
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.38 ▼0.994.15 ▲2.4642.98 ▲1.79
Dashboard /wp-admin2,203 ▲125.79 ▲0.7595.35 ▼9.5038.80 ▼6.82
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0139.74 ▼3.6635.83 ▼1.88
Add New Post /wp-admin/post-new.php1,533 ▲1323.29 ▲0.37612.48 ▼16.5856.22 ▲1.49
Media Library /wp-admin/upload.php1,388 ▼04.24 ▲0.0994.42 ▲1.1741.94 ▼0.42

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 41× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/um-custom-tab-builder-lite/vendor/cmb2/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Counter_Base' not found in wp-content/plugins/um-custom-tab-builder-lite/vendor/cmb2/cmb2/includes/types/CMB2_Type_Text.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/um-custom-tab-builder-lite/vendor/cmb2/cmb2/includes/types/CMB2_Type_Text_Date.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/um-custom-tab-builder-lite/um-custom-tab-builder-lite.php:43
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_REST_Controller_Boxes' not found in wp-content/plugins/um-custom-tab-builder-lite/vendor/cmb2/cmb2/includes/rest-api/CMB2_REST_Controller_Fields.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/um-custom-tab-builder-lite/vendor/cmb2/cmb2/includes/types/CMB2_Type_Taxonomy_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/um-custom-tab-builder-lite/includes/icon-picker.php:51
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/um-custom-tab-builder-lite/vendor/cmb2/cmb2/includes/types/CMB2_Type_Picker_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/um-custom-tab-builder-lite/vendor/cmb2/cmb2/includes/types/CMB2_Type_Oembed.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/um-custom-tab-builder-lite/vendor/cmb2/cmb2/includes/types/CMB2_Type_Counter_Base.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: ultimatemember custom tabs, ultimate member, ultimate member profile tabs, ultimate member iframe, ultimate member contact form...

um-custom-tab-builder-lite/um-custom-tab-builder-lite.php Passed 13 tests

The main PHP script in "Ultimate Member Custom Tab Builder Lite" version 1.0.4.1 is automatically included on every request by WordPress
59 characters long description:
Adds an option to build tabs for Ultimate Member via admin.

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
Success! There were no dangerous files found in this plugin54,861 lines of code in 231 files:
LanguageFilesBlank linesComment linesLines of code
PO File12014,31518,50232,323
PHP702,4497,1288,403
JSON3006,670
CSS132591,1924,604
JavaScript83675871,450
Sass17306291,411

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity19.59
▷ Minimum class complexity1.00
▷ Maximum class complexity188.00
Average method complexity3.30
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes76
▷ Abstract classes911.84%
▷ Concrete classes6788.16%
▷ Final classes11.49%
Methods619
▷ Static methods11418.42%
▷ Public methods52384.49%
▷ Protected methods9114.70%
▷ Private methods50.81%
Functions38
▷ Named functions3797.37%
▷ Anonymous functions12.63%
Constants11
▷ Global constants327.27%
▷ Class constants872.73%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/cmb2/cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%
vendor/cmb2/cmb2/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
vendor/cmb2/cmb2/images/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%
vendor/cmb2/cmb2/images/ico-delete.png0.70KB0.72KB0.00%
vendor/cmb2/cmb2/images/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%