68% social-wall-wp

Code Review | Social Wall

WordPress plugin Social Wall scored68%from 54 tests.

About plugin

  • Plugin page: social-wall-wp
  • Plugin version: 1.5.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0.2
  • WordPress version: 6.3.1
  • First release: Sep 30, 2022
  • Latest release: Sep 30, 2022
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: aimtofeel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /910 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼4.64ms] Passed 4 tests

Server-side resources used by Social Wall
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2040.62 ▲2.22
Dashboard /wp-admin3.38 ▲0.0342.35 ▼15.50
Posts /wp-admin/edit.php3.49 ▲0.1445.01 ▲1.52
Add New Post /wp-admin/post-new.php5.96 ▲0.0790.35 ▼6.80
Media Library /wp-admin/upload.php3.30 ▲0.0737.08 ▲3.34

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 18 new files
Database: 1 new table, 6 new options
New tables
wp_social_wall_posts
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Social Wall
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6914.46 ▲0.051.73 ▼0.0041.60 ▲1.11
Dashboard /wp-admin2,221 ▲295.84 ▲0.8796.10 ▼11.2478.21 ▲36.90
Posts /wp-admin/edit.php2,107 ▲181.97 ▼0.0539.53 ▲2.2834.60 ▼1.84
Add New Post /wp-admin/post-new.php1,680 ▲16622.46 ▲4.80691.37 ▲5.0845.49 ▲0.40
Media Library /wp-admin/upload.php1,400 ▲124.24 ▲0.0195.96 ▼6.4863.94 ▲17.93

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
These items require your attention
  • Zombie tables were found after uninstall: 1 table
    • wp_social_wall_posts
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

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)
Good news, no errors were detected

SRP 0% 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
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/social-wall-wp/social-wall-wp.php
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WpSocialWall\\src\\api\\BaseRequest' not found in wp-content/plugins/social-wall-wp/src/api/PostsRequest.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WpSocialWall\\src\\api\\BaseRequest' not found in wp-content/plugins/social-wall-wp/src/api/TokensRequest.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WpSocialWall\\src\\api\\BaseRequest' not found in wp-content/plugins/social-wall-wp/src/api/SitesRequest.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/social-wall-wp/admin/templates/SetttingsTemplate.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed: The official readme.txt is a good inspiration

social-wall-wp/social-wall-wp.php Passed 13 tests

The principal PHP file in "Social Wall" v. 1.5.1 is loaded by WordPress automatically on each request
65 characters long description:
Collects social media activity and stores them in a shared table.

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
Everything looks great! No dangerous files found in this plugin454 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP15122254454

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity3.75
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity2.04
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods29
▷ Static methods00.00%
▷ Public methods2482.76%
▷ Protected methods26.90%
▷ Private methods310.34%
Functions6
▷ Named functions233.33%
▷ Anonymous functions466.67%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/brickwall-small.png2.36KB0.28KB▼ 88.19%
admin/assets/brickwall.png1.39KB0.39KB▼ 71.85%