10% socail-profile-linking

Code Review | Social Profile Linking

WordPress plugin Social Profile Linking scored10%from 54 tests.

About plugin

  • Plugin page: socail-profile-li...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.9
  • WordPress version: 6.3.1
  • First release: Oct 13, 2014
  • Latest release: Feb 25, 2018
  • Number of updates: 9
  • Update frequency: every 136.8 days
  • Top authors: contact4sajid (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /8,099 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/socail-profile-linking/includes/widget/widget.php+8
    Methods with the same name as their class will not be constructors in a future version of PHP; spl_widget has a deprecated constructor

Server metrics [RAM: ▼1.79MB] [CPU: ▼53.55ms] Passed 4 tests

Analyzing server-side resources used by Social Profile Linking
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.21 ▼1.266.08 ▼30.86
Dashboard /wp-admin2.23 ▼1.125.79 ▼48.17
Posts /wp-admin/edit.php2.23 ▼1.136.33 ▼39.45
Add New Post /wp-admin/post-new.php2.23 ▼3.667.11 ▼95.71
Media Library /wp-admin/upload.php2.23 ▼1.006.80 ▼27.03

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 64 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
widget_spl_widget
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
spl_all_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Social Profile Linking
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲7114.47 ▲0.242.00 ▲0.3738.70 ▼3.20
Dashboard /wp-admin2,224 ▲385.88 ▲0.9597.43 ▼18.9675.93 ▲29.95
Posts /wp-admin/edit.php2,104 ▲151.97 ▼0.0737.44 ▼5.1633.57 ▼3.32
Add New Post /wp-admin/post-new.php1,527 ▼123.42 ▲4.80728.79 ▲123.0858.32 ▲0.92
Media Library /wp-admin/upload.php1,397 ▲124.12 ▼0.07107.89 ▲8.2567.37 ▲23.34

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/socail-profile-linking/includes/widget/widget.php+8
    Methods with the same name as their class will not be constructors in a future version of PHP; spl_widget has a deprecated constructor
  • This plugin does not fully uninstall, leaving 8 options in the database
    • widget_theysaidso_widget
    • spl_all_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_spl_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/socail-profile-linking/includes/widget/widget.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/socail-profile-linking/includes/admin/settings.php:48
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/socail-profile-linking/spl.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/socail-profile-linking/includes/front-end/shortcode.php:18

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)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: social media, twitter, social networks, social marketing, facebook...

socail-profile-linking/spl.php 92% from 13 tests

The main PHP file in "Social Profile Linking" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("socail-profile-linking.php" instead of "spl.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin2,026 lines of code in 62 files:
LanguageFilesBlank linesComment linesLines of code
SVG566391,140
PHP525886790
CSS1171196

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity41.00
▷ Minimum class complexity41.00
▷ Maximum class complexity41.00
Average method complexity11.00
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions27
▷ Named functions27100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/social.png0.67KB0.60KB▼ 9.53%