84% user-profile-tabs

Code Review | User Profile Tabs

WordPress plugin User Profile Tabs scored84%from 54 tests.

About plugin

  • Plugin page: user-profile-tabs
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0
  • WordPress version: 6.3.1
  • First release: Sep 30, 2022
  • Latest release: Sep 30, 2022
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: yookoala (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /177 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.79ms] Passed 4 tests

Server-side resources used by User Profile Tabs
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.11 ▼7.53
Dashboard /wp-admin3.31 ▲0.0145.82 ▼3.27
Posts /wp-admin/edit.php3.36 ▲0.0047.59 ▼0.07
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.16 ▲7.33
Media Library /wp-admin/upload.php3.24 ▲0.0035.59 ▼0.27

Server storage [IO: ▲0.01MB] [DB: ▲0.31MB] Passed 3 tests

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

Browser metrics Passed 4 tests

A check of browser resources used by User Profile Tabs
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.25 ▼1.171.67 ▼0.2738.98 ▼4.75
Dashboard /wp-admin2,209 ▲214.83 ▼1.07110.00 ▼7.4237.38 ▼6.93
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0640.40 ▲2.3234.72 ▲0.89
Add New Post /wp-admin/post-new.php1,533 ▼523.12 ▼0.05653.79 ▼35.1858.63 ▲6.19
Media Library /wp-admin/upload.php1,385 ▼34.17 ▲0.0596.66 ▼3.1441.09 ▼2.54

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-profile-tabs/user-profile-tabs.php:19

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

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: memberships, user meta, users, user profile, user fields

user-profile-tabs/user-profile-tabs.php Passed 13 tests

"User Profile Tabs" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
42 characters long description:
Group user profile page fields under tabs.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected215 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript11839108
CSS12071
Markdown29026
PHP12710

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin