10% gc-social-wall

Code Review | GC Social Wall

WordPress plugin GC Social Wall scored10%from 54 tests.

About plugin

  • Plugin page: gc-social-wall
  • Plugin version: 1.15
  • PHP version: 7.4.16
  • WordPress compatibility: 1.14-4.0
  • WordPress version: 6.3.1
  • First release: Sep 12, 2014
  • Latest release: Dec 9, 2014
  • Number of updates: 35
  • Update frequency: every 2.5 days
  • Top authors: gurievcreative (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

60+ active /9,770 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/gc-social-wall/Admin/Base.php+23
    Trying to access array offset on value of type null

Server metrics [RAM: ▼1.91MB] [CPU: ▼59.75ms] Passed 4 tests

Analyzing server-side resources used by GC Social Wall
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.395.38 ▼40.58
Dashboard /wp-admin2.09 ▼1.216.07 ▼46.95
Posts /wp-admin/edit.php2.09 ▼1.266.77 ▼52.98
Add New Post /wp-admin/post-new.php2.09 ▼3.797.26 ▼98.48
Media Library /wp-admin/upload.php2.09 ▼1.146.43 ▼32.13
Setting /wp-admin/admin.php?page=setting2.095.82
GC Social Wall /wp-admin/admin.php?page=gc_social_wall2.097.19

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for GC Social Wall
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,120 ▲35915.58 ▲1.289.83 ▲7.8640.34 ▼1.32
Dashboard /wp-admin2,415 ▲2126.62 ▲1.59123.26 ▲14.3037.61 ▼6.32
Posts /wp-admin/edit.php2,317 ▲2143.64 ▲1.6655.08 ▲11.4939.09 ▲0.86
Add New Post /wp-admin/post-new.php1,570 ▲2523.15 ▼0.23606.78 ▼126.1534.98 ▼65.87
Media Library /wp-admin/upload.php1,451 ▲514.47 ▲0.2385.11 ▼26.6146.71 ▼0.74
Setting /wp-admin/admin.php?page=setting1,0973.5748.4630.58
GC Social Wall /wp-admin/admin.php?page=gc_social_wall2,0273.7561.2828.62

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/gc-social-wall/Admin/Base.php+23
    Trying to access array offset on value of type null
  • Zombie WordPress options detected upon uninstall: 8 options
    • widget_theysaidso_widget
    • globals_brick_gutter
    • theysaidso_admin_options
    • globals_brick_width
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=gc_social_wall
    • > POST request to /wp-admin/admin-ajax.php?action=loadShortCode
    • > Notice in wp-content/plugins/gc-social-wall/Admin/Base.php+23
    Trying to access array offset on value of type null
    • > GET request to /wp-admin/admin.php?page=gc_social_wall
    • > Notice in wp-content/plugins/gc-social-wall/Wall/Page.php+55
    Undefined variable: handle
    • > GET request to /wp-admin/admin.php?page=gc_social_wall
    • > Notice in wp-content/plugins/gc-social-wall/Wall/Page.php+55
    Undefined variable: object_name
    • > GET request to /wp-admin/admin.php?page=gc_social_wall
    • > Notice in wp-content/plugins/gc-social-wall/Wall/Page.php+55
    Undefined variable: l10n
    • > GET request to /wp-admin/admin.php?page=gc_social_wall
    • > User notice in wp-includes/functions.php+5905
    Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
  • 22 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=gc_social_wall
    • > Notice in wp-content/plugins/gc-social-wall/Controls/Checkbox.php+34
    Undefined index: label

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 15× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Controls\\Control' not found in wp-content/plugins/gc-social-wall/Controls/Checkbox.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/gc-social-wall/__.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Controls\\Control' not found in wp-content/plugins/gc-social-wall/Controls/Select.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Controls\\Control' not found in wp-content/plugins/gc-social-wall/Controls/Radio.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Admin\\BaseWithControls' not found in wp-content/plugins/gc-social-wall/Admin/MetaBox.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Controls\\Control' not found in wp-content/plugins/gc-social-wall/Controls/Text.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Controls\\Control' not found in wp-content/plugins/gc-social-wall/Controls/Media.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Controls\\Control' not found in wp-content/plugins/gc-social-wall/Controls/Textarea.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Admin\\BaseWithControls' not found in wp-content/plugins/gc-social-wall/Admin/Taxonomy.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Controls\\Control' not found in wp-content/plugins/gc-social-wall/Controls/ColorPicker.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: youtube, twitter, social wall, facebook, social stream

gc-social-wall/GCSocialWall.php 85% from 13 tests

"GC Social Wall" version 1.15's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 158 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gc-social-wall.php" instead of "GCSocialWall.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
Everything looks great! No dangerous files found in this plugin6,566 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript177191,2903,325
PHP243789622,658
CSS3946583

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity6.94
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity2.02
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes33
▷ Abstract classes515.15%
▷ Concrete classes2884.85%
▷ Final classes00.00%
Methods198
▷ Static methods3115.66%
▷ Public methods17889.90%
▷ Protected methods21.01%
▷ Private methods189.09%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants220.00%
▷ Class constants880.00%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected