83% social-media-links-for-ultimate-member

Code Review | Social Media Links for Ultimate Member

WordPress plugin Social Media Links for Ultimate Member scored83%from 54 tests.

About plugin

  • Plugin page: social-media-link...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.7.2
  • WordPress version: 6.3.1
  • First release: Nov 20, 2015
  • Latest release: Jan 28, 2017
  • Number of updates: 9
  • Update frequency: every 48.4 days
  • Top authors: suiteplugins (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /6,449 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
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼10.36ms] Passed 4 tests

A check of server-side resources used by Social Media Links for Ultimate Member
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0843.72 ▼17.25
Dashboard /wp-admin3.38 ▲0.0752.35 ▲3.00
Posts /wp-admin/edit.php3.49 ▲0.1348.61 ▼9.52
Add New Post /wp-admin/post-new.php5.96 ▲0.0787.14 ▼15.14
Media Library /wp-admin/upload.php3.30 ▲0.0736.85 ▲0.46

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Social Media Links for Ultimate Member
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲5713.21 ▼1.154.26 ▲1.5044.12 ▼7.43
Dashboard /wp-admin2,200 ▲155.79 ▼0.1299.33 ▼33.7642.03 ▼14.76
Posts /wp-admin/edit.php2,092 ▼01.99 ▼0.0642.77 ▲0.7038.72 ▲0.26
Add New Post /wp-admin/post-new.php1,533 ▼923.21 ▲4.87685.67 ▲50.8358.09 ▼2.45
Media Library /wp-admin/upload.php1,388 ▼04.24 ▲0.0399.68 ▼6.3145.95 ▲4.10

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-media-links-for-ultimate-member/social-links-um.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_user_meta() in wp-content/plugins/social-media-links-for-ultimate-member/templates/fields.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

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: You are using too many tags: 11 tag instead of maximum 10
You can take inspiration from this readme.txt

social-media-links-for-ultimate-member/social-links-um.php 85% from 13 tests

The main file in "Social Media Links for Ultimate Member" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("social-media-links-for-ultimate-member.php" instead of "social-links-um.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin471 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP25152421
PO File1171750

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity38.00
▷ Minimum class complexity38.00
▷ Maximum class complexity38.00
Average method complexity4.08
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods216.67%
▷ Public methods12100.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

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin