78% wp-sociline

Code Review | WP SociLine - Put twitter on your blogs

WordPress plugin WP SociLine - Put twitter on your blogs scored78%from 54 tests.

About plugin

  • Plugin page: wp-sociline
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.3
  • WordPress version: 6.3.1
  • First release: Feb 10, 2020
  • Latest release: Feb 11, 2020
  • Number of updates: 4
  • Update frequency: every 2.5 days
  • Top authors: teknikforce (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /629 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
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼8.75ms] Passed 4 tests

This is a short check of server-side resources used by WP SociLine - Put twitter on your blogs
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0939.93 ▼0.02
Dashboard /wp-admin3.33 ▼0.0144.88 ▼13.76
Posts /wp-admin/edit.php3.38 ▲0.0343.07 ▼5.40
Add New Post /wp-admin/post-new.php5.93 ▲0.0580.49 ▼15.82
Media Library /wp-admin/upload.php3.25 ▲0.0340.87 ▲7.82

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 145 new files
Database: 1 new table, 19 new options
New tables
wpsociline_user_profile
New WordPress options
widget_recent-posts
wpsociline_notification_icon_bgcolor
wpsociline_fonts
wpsociline_spreadraius
wpsociline_popup_state
wpsociline_popupbox_rightoffset
widget_recent-comments
wpsociline_popupbox_height
wpsociline_boxshadow_offset
wpsociline_popupbox_borderradius
...

Browser metrics Passed 4 tests

A check of browser resources used by WP SociLine - Put twitter on your blogs
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲13513.83 ▼0.554.80 ▲2.5427.10 ▼12.02
Dashboard /wp-admin2,233 ▲455.18 ▲0.26103.98 ▲1.5450.50 ▲5.29
Posts /wp-admin/edit.php2,116 ▲272.28 ▲0.2736.01 ▼0.5541.78 ▲6.19
Add New Post /wp-admin/post-new.php1,701 ▲16625.56 ▲2.50591.88 ▼50.7854.89 ▼13.87
Media Library /wp-admin/upload.php1,415 ▲304.34 ▲0.1295.01 ▲0.2447.08 ▲4.63

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 19 options in the database
    • widget_recent-comments
    • wpsociline_fonts
    • db_upgraded
    • wpsociline_popupbox_bordercolor
    • wpsociline_popupbox_height
    • theysaidso_admin_options
    • wpsociline_popup_state
    • wpsociline_spreadraius
    • wpsociline_popupbox_border
    • wpsociline_notification_icon_bgcolor
    • ...

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)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-sociline/wpsocilineusersitepopup.php
  • 7× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wp-sociline/unichatbox/user_not_verified_bonus.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-sociline/sociline_profile_table.php:120
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/wp-sociline/wpsociline_ajax_delete.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-sociline/sociline_template_settings.php:54
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/wp-sociline/wpsociline_ajax_update.php:10
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/wp-sociline/sociline_dashboard.php:72
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wp-sociline/unichatbox/user_not_verified.php:24

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: These screenshots need descriptions #1, #2, #3, #4 in wp-sociline/assets to your readme.txt
You can look at the official readme.txt

wp-sociline/index.php 92% from 13 tests

The main PHP script in "WP SociLine - Put twitter on your blogs" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-sociline.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected145,121 lines of code in 103 files:
LanguageFilesBlank linesComment linesLines of code
JSON20058,323
YAML40024,272
CSS235,01711321,462
JavaScript212,9392,06816,549
SVG702413,892
Sass18505344,649
LESS18502554,607
PHP10264151,367

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity12.00
▷ Minimum class complexity5.00
▷ Maximum class complexity23.00
Average method complexity2.52
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods29
▷ Static methods00.00%
▷ Public methods29100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.44MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/tekniklogo.png31.53KB8.50KB▼ 73.06%
(invalid) unichatbox/asset/img/blue-icon-security.png13.74KB0.00KB▼ 100.00%
assets/images/screenshot-2.png103.72KB32.72KB▼ 68.45%
assets/images/screenshot-3.png63.19KB19.95KB▼ 68.43%
assets/images/closechat.png57.49KB26.25KB▼ 54.33%