78% social-boost

Code Review | Social Boost: Giveaways and Contests. Grow followers, shares, subscribers, traffic, referrals, sales and more

WordPress plugin Social Boost: Giveaways and Contests. Grow followers, shares, subscribers, traffic, referrals, sales and more scored78%from 54 tests.

About plugin

  • Plugin page: social-boost
  • Plugin version: 3.2.17
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.4
  • WordPress version: 6.3.1
  • First release: Nov 17, 2015
  • Latest release: Nov 15, 2023
  • Number of updates: 144
  • Update frequency: every 20.3 days
  • Top authors: akashmalik (100%)

Code review

54 tests

User reviews

20 reviews

Install metrics

400+ active /31,257 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Social Boost: Giveaways and Contests. Grow followers, shares, subscribers, traffic, referrals, sales and more
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0336.05 ▼5.98
Dashboard /wp-admin3.34 ▼0.0145.31 ▼16.06
Posts /wp-admin/edit.php3.39 ▲0.0447.35 ▲6.83
Add New Post /wp-admin/post-new.php5.95 ▲0.0680.78 ▼6.52
Media Library /wp-admin/upload.php3.26 ▲0.0333.39 ▲1.98
Social Boost /wp-admin/options-general.php?page=socialboost3.2732.39

Server storage [IO: ▲0.88MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
socialboost_register
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Social Boost: Giveaways and Contests. Grow followers, shares, subscribers, traffic, referrals, sales and more
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲4714.67 ▲0.331.65 ▼0.2140.01 ▼4.22
Dashboard /wp-admin2,199 ▲215.61 ▼0.0993.74 ▼24.9038.63 ▼3.62
Posts /wp-admin/edit.php2,107 ▲41.96 ▼0.0039.06 ▼0.2335.96 ▼0.53
Add New Post /wp-admin/post-new.php1,529 ▼1021.31 ▼1.83659.64 ▲53.2652.08 ▲1.98
Media Library /wp-admin/upload.php1,404 ▲14.16 ▼0.0895.89 ▼4.0340.38 ▼2.86
Social Boost /wp-admin/options-general.php?page=socialboost1,0821.9434.0581.10

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • socialboost_register
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/social-boost/socialboost.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/social-boost/templates/settings.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed: Please take inspiration from this readme.txt

social-boost/socialboost.php 92% from 13 tests

The main file in "Social Boost: Giveaways and Contests. Grow followers, shares, subscribers, traffic, referrals, sales and more" v. 3.2.17 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("social-boost.php" instead of "socialboost.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin3,753 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP64591372,131
JavaScript32802701,106
CSS34238515
JSON1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity117.00
▷ Minimum class complexity9.00
▷ Maximum class complexity246.00
Average method complexity7.00
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods58
▷ Static methods58.62%
▷ Public methods5289.66%
▷ Protected methods23.45%
▷ Private methods46.90%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants133.33%
▷ Class constants266.67%
▷ Public constants2100.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
6 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/icon-link.png1.26KB0.35KB▼ 71.95%
img/appsmav-logo.png5.23KB2.71KB▼ 48.20%
img/tick-green.png1.11KB0.35KB▼ 68.64%
img/Video.png0.62KB0.63KB0.00%
img/icon-error.png1.36KB0.78KB▼ 43.12%