10% social-profilr-reimagined

Code Review | Social Profilr Reimagined

WordPress plugin Social Profilr Reimagined scored 10% from 54 tests.

About plugin

  • Plugin page: social-profilr-re...
  • Plugin version: 2.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5.0-4.1.0
  • WordPress version: 6.3.1
  • First release: Jun 25, 2012
  • Latest release: Dec 27, 2014
  • Number of updates: 25
  • Update frequency: every 36.6 days
  • Top authors: Asif2BD (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 3,335 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/social-profilr-reimagined/socialprofilrreimagined.php+19
    Methods with the same name as their class will not be constructors in a future version of PHP; SocialprofilrClass has a deprecated constructor

Server metrics [RAM: ▼1.84MB] [CPU: ▼50.75ms] Passed 4 tests

An overview of server-side resources used by Social Profilr Reimagined
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.15 ▼1.315.29 ▼36.71
Dashboard /wp-admin2.17 ▼1.136.15 ▼40.59
Posts /wp-admin/edit.php2.17 ▼1.195.49 ▼40.24
Add New Post /wp-admin/post-new.php2.17 ▼3.725.95 ▼85.46
Media Library /wp-admin/upload.php2.17 ▼1.065.11 ▼31.37

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Social Profilr Reimagined
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲7213.23 ▼1.151.70 ▼0.1042.42 ▼4.54
Dashboard /wp-admin2,207 ▲225.83 ▲0.03101.31 ▼9.2142.43 ▼0.15
Posts /wp-admin/edit.php2,090 ▲12.02 ▲0.0437.27 ▼2.9530.45 ▼3.53
Add New Post /wp-admin/post-new.php1,523 ▼1023.26 ▲0.07592.04 ▼98.6459.69 ▼1.11
Media Library /wp-admin/upload.php1,392 ▲74.20 ▼0.1094.98 ▼10.4642.89 ▼2.56
Social Profilr Reimagined /wp-admin/socialprofilrreimagined.php260.440.0912.21

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
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/social-profilr-reimagined/socialprofilrreimagined.php+19
    Methods with the same name as their class will not be constructors in a future version of PHP; SocialprofilrClass has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • SocialprofilrOptions

Smoke tests 50% 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 | 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 items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/social-profilr-reimagined/socialprofilrreimagined.php:125

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
    • > GET request to /wp-admin/socialprofilrreimagined.php
    • > Network (severe)
    wp-admin/socialprofilrreimagined.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: bookmark, social profile, social bookmarks, social, social profile link...

social-profilr-reimagined/socialprofilrreimagined.php 92% from 13 tests

The main file in "Social Profilr Reimagined" v. 2.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("social-profilr-reimagined.php" instead of "socialprofilrreimagined.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
Success! There were no dangerous files found in this plugin429 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP110645429

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity26.00
▷ Minimum class complexity26.00
▷ Maximum class complexity26.00
Average method complexity3.40
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
26 compressed PNG files occupy 0.05MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/li_32.png2.97KB2.34KB▼ 21.10%
images/li_16.png1.30KB1.43KB0.00%
images/be_16.png1.20KB1.34KB0.00%
images/fr_16.png1.29KB1.34KB0.00%
images/ms_16.png1.24KB1.40KB0.00%