10% social-space

Code Review | Social Space

WordPress plugin Social Space scored10%from 54 tests.

About plugin

  • Plugin page: social-space
  • Plugin version: 4.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.2-4.8
  • WordPress version: 6.3.1
  • First release: Feb 26, 2014
  • Latest release: May 21, 2016
  • Number of updates: 17
  • Update frequency: every 102.7 days
  • Top authors: rishabh_19 (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

300+ active /10,752 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/social-space/index.php+16
    Methods with the same name as their class will not be constructors in a future version of PHP; social_space has a deprecated constructor

Server metrics [RAM: ▼2.16MB] [CPU: ▼60.40ms] Passed 4 tests

Analyzing server-side resources used by Social Space
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.635.10 ▼37.33
Dashboard /wp-admin2.12 ▼1.445.93 ▼49.10
Posts /wp-admin/edit.php2.12 ▼1.556.31 ▼54.87
Add New Post /wp-admin/post-new.php2.12 ▼4.026.75 ▼100.28
Media Library /wp-admin/upload.php2.12 ▼1.376.73 ▼29.41

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_social_space
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Social Space
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.22 ▲0.022.00 ▲0.4242.14 ▲0.24
Dashboard /wp-admin2,195 ▲185.62 ▼0.0790.35 ▼3.0438.28 ▼5.60
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0042.10 ▲3.6937.81 ▲0.98
Add New Post /wp-admin/post-new.php1,545 ▲1223.28 ▲0.13700.35 ▲18.5750.70 ▼2.38
Media Library /wp-admin/upload.php1,403 ▲64.21 ▼0.0398.61 ▼5.7442.64 ▼0.51

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/social-space/index.php+16
    Methods with the same name as their class will not be constructors in a future version of PHP; social_space has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_social_space
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/social-space/index.php:16

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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: There are too many tags (14 tag instead of maximum 10)
The official readme.txt might help

social-space/index.php 85% from 13 tests

"Social Space" version 4.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 141 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("social-space.php" instead of "index.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
Success! There were no dangerous files found in this plugin295 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS243191
PHP11621104

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity5.25
▷ Minimum method complexity1.00
▷ Maximum method complexity12.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%
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
8 PNG files occupy 0.31MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png185.70KB72.36KB▼ 61.04%
(invalid) screenshot-2.png34.35KB0.00KB▼ 100.00%
assets/type3.png0.38KB0.31KB▼ 18.77%
assets/social.png27.04KB12.40KB▼ 54.13%
screenshot-1.png50.68KB12.88KB▼ 74.59%