72% sip-social-proof-woocommerce

Code Review | SIP Social Proof for WooCommerce

WordPress plugin SIP Social Proof for WooCommerce scored72%from 54 tests.

About plugin

  • Plugin page: sip-social-proof-...
  • Plugin version: 1.0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6.0-6.0
  • WordPress version: 6.3.1
  • First release: Aug 8, 2015
  • Latest release: Jun 19, 2022
  • Number of updates: 30
  • Update frequency: every 83.6 days
  • Top authors: shopitpress (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active /3,101 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.99ms] Passed 4 tests

A check of server-side resources used by SIP Social Proof for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.54 ▼4.30
Dashboard /wp-admin3.31 ▲0.0050.76 ▲0.65
Posts /wp-admin/edit.php3.36 ▲0.0049.99 ▼4.55
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.28 ▼11.76
Media Library /wp-admin/upload.php3.23 ▲0.0038.23 ▲1.08
ShopitPress Extras /wp-admin/admin.php?page=sip-extras3.0026.96
Social Proof /wp-admin/admin.php?page=sip-social-proof-settings3.0021.99

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
refresh_stats_every_x_hours
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by SIP Social Proof for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.26 ▼1.391.74 ▼0.1643.50 ▼0.80
Dashboard /wp-admin2,206 ▲185.87 ▼0.04107.59 ▲3.2541.59 ▲2.93
Posts /wp-admin/edit.php2,092 ▼02.00 ▼0.0639.95 ▲0.3335.76 ▼4.56
Add New Post /wp-admin/post-new.php1,542 ▲618.04 ▼5.21587.36 ▼79.9663.43 ▲14.01
Media Library /wp-admin/upload.php1,382 ▼64.31 ▲0.0996.48 ▼10.1743.36 ▼4.05
ShopitPress Extras /wp-admin/admin.php?page=sip-extras280.440.093.62
Social Proof /wp-admin/admin.php?page=sip-social-proof-settings280.440.094.54

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • refresh_stats_every_x_hours
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/sip-social-proof-woocommerce/admin/ui/addon.php
  • 21× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Warning
      Use of undefined constant SIP_SPWC_PLUGIN_VERSION - assumed 'SIP_SPWC_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/sip-social-proof-woocommerce/admin/ui/plugin.php on line 8
    • > PHP Warning
      Use of undefined constant SIP_SPWC_PLUGIN - assumed 'SIP_SPWC_PLUGIN' (this will throw an Error in a future version of PHP) in wp-content/plugins/sip-social-proof-woocommerce/admin/ui/plugin.php on line 9
    • > PHP Warning
      Use of undefined constant SIP_SPWC_PLUGIN_PURCHASE_URL - assumed 'SIP_SPWC_PLUGIN_PURCHASE_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/sip-social-proof-woocommerce/admin/ui/help.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sip-social-proof-woocommerce/admin/ui/help.php:13
    • > PHP Warning
      Use of undefined constant SIP_SPWC_PLUGIN_URL - assumed 'SIP_SPWC_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/sip-social-proof-woocommerce/admin/ui/plugin.php on line 8
    • > PHP Warning
      Use of undefined constant SIP_SPWC_URL - assumed 'SIP_SPWC_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/sip-social-proof-woocommerce/admin/ui/themes.php on line 3
    • > PHP Warning
      Use of undefined constant SIP_SPWC_ADMIN_VERSION - assumed 'SIP_SPWC_ADMIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/sip-social-proof-woocommerce/admin/ui/addon.php on line 110
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sip-social-proof-woocommerce/admin/sip-social-proof-admin.php:51
    • > PHP Warning
      Use of undefined constant SIP_WPGUMBY_THEME - assumed 'SIP_WPGUMBY_THEME' (this will throw an Error in a future version of PHP) in wp-content/plugins/sip-social-proof-woocommerce/admin/ui/themes.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/sip-social-proof-woocommerce/admin/ui/themes.php:10

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=sip-extras
    • > Network (severe)
    wp-admin/admin.php?page=sip-extras - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/admin.php?page=sip-social-proof-settings
    • > Network (severe)
    wp-admin/admin.php?page=sip-social-proof-settings - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: sip social proof woocommerce, sales count, daily sales, monthly sales, social-proof...

sip-social-proof-woocommerce/sip-social-proof-wc.php 69% from 13 tests

The entry point to "SIP Social Proof for WooCommerce" version 1.0.9 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("sip-social-proof-woocommerce.php" instead of "sip-social-proof-wc.php")
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Requires at least: Required version must match the one declared in readme.txt ("4.1" instead of "2.6.0")

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
There were no executable files found in this plugin879 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP10127155609
CSS3375221
JavaScript27349

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity14.50
▷ Minimum class complexity1.00
▷ Maximum class complexity28.00
Average method complexity2.69
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants22
▷ Global constants22100.00%
▷ Class constants00.00%
▷ Public constants00.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
7 PNG files occupy 0.10MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/images/icon-social-proof.png8.71KB9.18KB0.00%
admin/assets/images/icon.png1.56KB1.04KB▼ 33.27%
admin/assets/images/icon-reviews-shortcode.png7.81KB8.36KB0.00%
admin/assets/images/icon-advanced-email.png21.89KB9.25KB▼ 57.75%
admin/assets/images/icon-cookie-check.png21.19KB8.71KB▼ 58.89%