WordPress plugin SoGrid Lite scored 10% from 54 tests.

About plugin

  • Plugin page: sogrid-lite-socia...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.3
  • WordPress version: 6.3.1
  • First release: Aug 10, 2015
  • Latest release: Aug 10, 2015
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: ShindiriStudio (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active / 2,334 total downloads

Benchmarks

Plugin footprint 23% 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
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/sogrid-lite-social-networks-posts-grid/includes/class/class-wp-my-sogrid-backend-class.php+4
    Methods with the same name as their class will not be constructors in a future version of PHP; Class_Wp_My_SoGrid_Backend_Class has a deprecated constructor

Server metrics [RAM: ▼1.19MB] [CPU: ▼42.69ms] Passed 4 tests

An overview of server-side resources used by SoGrid Lite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.78 ▼0.6812.98 ▼31.51
Dashboard /wp-admin2.83 ▼0.4815.25 ▼34.29
Posts /wp-admin/edit.php2.83 ▼0.5315.94 ▼29.47
Add New Post /wp-admin/post-new.php2.83 ▼3.0615.93 ▼75.49
Media Library /wp-admin/upload.php2.83 ▼0.4014.73 ▼18.98
Add New/Edit /wp-admin/admin.php?page=my-sogrid-edit2.8316.08
SoGrid /wp-admin/admin.php?page=my-sogrid-index2.8316.16
Get Social Ids /wp-admin/admin.php?page=my-sogrid-search-ids2.8315.14
Options /wp-admin/admin.php?page=my-sogrid-general-options2.8316.17

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 222 new files
Database: 2 new tables, 9 new options
New tables
wp_sogrid_object_meta
wp_sogrid_objects
New WordPress options
br0_sogrid_my_admin_web_fonts
br0_sogrid_my_admin_webfonts_date
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
br0_sogrid_my_admin_webfonts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for SoGrid Lite
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲11313.62 ▼0.831.63 ▼0.0029.66 ▼22.17
Dashboard /wp-admin2,235 ▲445.83 ▲0.92101.34 ▼14.6537.92 ▼4.17
Posts /wp-admin/edit.php2,124 ▲352.01 ▲0.0239.37 ▲2.7634.38 ▲2.64
Add New Post /wp-admin/post-new.php1,561 ▲2823.24 ▲0.04653.00 ▲5.0055.76 ▼6.76
Media Library /wp-admin/upload.php1,423 ▲354.25 ▲0.0394.93 ▼8.1841.55 ▼4.09
Add New/Edit /wp-admin/admin.php?page=my-sogrid-edit3,8774.25127.2537.40
SoGrid /wp-admin/admin.php?page=my-sogrid-index8552.1824.1738.69
Get Social Ids /wp-admin/admin.php?page=my-sogrid-search-ids9632.2029.1726.07
Options /wp-admin/admin.php?page=my-sogrid-general-options1,0432.3032.6126.02

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/sogrid-lite-social-networks-posts-grid/so-grid-main-class.php+158
    Undefined index: my_vkontakte_12_12_get_code
  • The uninstall procedure failed, leaving 2 tables in the database
    • wp_sogrid_object_meta
    • wp_sogrid_objects
  • This plugin does not fully uninstall, leaving 9 options in the database
    • br0_sogrid_my_admin_webfonts_date
    • widget_theysaidso_widget
    • br0_sogrid_my_admin_webfonts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • br0_sogrid_my_admin_web_fonts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=my-sogrid-general-options
    • > Notice in wp-content/plugins/sogrid-lite-social-networks-posts-grid/so-grid-main-class.php+158
    Undefined index: my_vkontakte_12_12_get_code
    • > GET request to /wp-admin/admin.php?page=my-sogrid-edit
    • > Notice in wp-content/plugins/sogrid-lite-social-networks-posts-grid/includes/views/admin/pages/edit.php+4
    Undefined index: id
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=my-sogrid-edit
    • > Notice in wp-content/plugins/sogrid-lite-social-networks-posts-grid/includes/modules/form/views/select.php+5
    Undefined index: Open+Sans
    • > GET request to /wp-admin/admin.php?page=my-sogrid-edit
    • > Deprecated in wp-content/plugins/sogrid-lite-social-networks-posts-grid/includes/controllers/class-wp-my-sogrid-backend-controller.php+4
    Methods with the same name as their class will not be constructors in a future version of PHP; Class_Wp_My_SoGrid_Backend_Controller has a deprecated constructor
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=my-sogrid-search-ids
    • > Notice in wp-content/plugins/sogrid-lite-social-networks-posts-grid/includes/views/admin/pages/search_ids.php+4
    Undefined index: my_action
    • > GET request to /wp-admin/admin.php?page=my-sogrid-index
    • > Notice in wp-content/plugins/sogrid-lite-social-networks-posts-grid/includes/functions/functions.php+2855
    Undefined index: my_page
    • > GET request to /wp-admin/admin.php?page=my-sogrid-index
    • > Deprecated in wp-content/plugins/sogrid-lite-social-networks-posts-grid/includes/class/class-wp-my-sogrid-table-view.php+14
    Methods with the same name as their class will not be constructors in a future version of PHP; Class_Wp_My_SoGrid_Table_View has a deprecated constructor

SRP 0% 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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/sogrid-lite-social-networks-posts-grid/includes/views/front/my-facebook-comments.php
  • 42× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/sogrid-lite-social-networks-posts-grid/includes/modules/social/facebook/libs/facebook-php-sdk/tests/GraphAlbumTest.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\FacebookCanvasLoginHelper' not found in wp-content/plugins/sogrid-lite-social-networks-posts-grid/includes/modules/social/facebook/libs/facebook-php-sdk/src/Facebook/FacebookPageTabHelper.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/sogrid-lite-social-networks-posts-grid/includes/modules/social/facebook/libs/facebook-php-sdk/tests/HttpClients/AbstractTestHttpClient.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\FacebookRequestException' not found in wp-content/plugins/sogrid-lite-social-networks-posts-grid/includes/modules/social/facebook/libs/facebook-php-sdk/src/Facebook/FacebookPermissionException.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\GraphObject' not found in wp-content/plugins/sogrid-lite-social-networks-posts-grid/includes/modules/social/facebook/libs/facebook-php-sdk/src/Facebook/GraphPage.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\FacebookSignedRequestFromInputHelper' not found in wp-content/plugins/sogrid-lite-social-networks-posts-grid/includes/modules/social/facebook/libs/facebook-php-sdk/src/Facebook/FacebookJavaScriptLoginHelper.php:32
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/sogrid-lite-social-networks-posts-grid/includes/modules/social/facebook/libs/facebook-php-sdk/tests/Entities/SignedRequestTest.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/sogrid-lite-social-networks-posts-grid/so-grid-main-class.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\FacebookRequestException' not found in wp-content/plugins/sogrid-lite-social-networks-posts-grid/includes/modules/social/facebook/libs/facebook-php-sdk/src/Facebook/FacebookClientException.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\GraphObject' not found in wp-content/plugins/sogrid-lite-social-networks-posts-grid/includes/modules/social/facebook/libs/facebook-php-sdk/src/Facebook/GraphUser.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tags: You are using too many tags: 14 tag instead of maximum 10
The official readme.txt is a good inspiration

sogrid-lite-social-networks-posts-grid/so-grid-main-class.php 92% from 13 tests

"SoGrid Lite" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sogrid-lite-social-networks-posts-grid.php" instead of "so-grid-main-class.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
No dangerous file extensions were detected27,841 lines of code in 144 files:
LanguageFilesBlank linesComment linesLines of code
PHP891,4374,52610,844
JavaScript141,4942,6087,270
CSS96325696,012
Sass1323241,256
LESS1323331,247
PO File1270415575
SVG100520
Markdown233068
JSON10030
XML10019

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity12.22
▷ Minimum class complexity1.00
▷ Maximum class complexity133.00
Average method complexity2.66
▷ Minimum method complexity1.00
▷ Maximum method complexity77.00
Code structure
Namespaces3
Interfaces1
Traits0
Classes64
▷ Abstract classes23.12%
▷ Concrete classes6296.88%
▷ Final classes00.00%
Methods441
▷ Static methods5412.24%
▷ Public methods39790.02%
▷ Protected methods81.81%
▷ Private methods368.16%
Functions79
▷ Named functions6987.34%
▷ Anonymous functions1012.66%
Constants24
▷ Global constants1458.33%
▷ Class constants1041.67%
▷ Public constants10100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
35 PNG files occupy 0.10MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/images/prettyPhoto/light_rounded/btnNext.png1.38KB1.14KB▼ 17.29%
assets/css/smoothness/images/ui-icons_222222_256x240.png6.76KB4.17KB▼ 38.24%
assets/css/images/prettyPhoto/default/sprite_next.png1.33KB0.39KB▼ 70.69%
assets/css/colorbox/images/overlay.png0.11KB0.15KB0.00%
includes/modules/front/assets/images/google-plus.png3.80KB1.17KB▼ 69.24%