10% hoversignal

Code Review | HoverSignal WooCommerce Social Proof

WordPress plugin HoverSignal WooCommerce Social Proof scored10%from 54 tests.

About plugin

  • Plugin page: hoversignal
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 19, 2018
  • Latest release: Mar 12, 2019
  • Number of updates: 15
  • Update frequency: every 9.7 days
  • Top authors: hoversignal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,169 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • Install procedure had errors
    • > Parse error in wp-content/plugins/hoversignal/init.php+353
    syntax error, unexpected end of file

Server metrics [RAM: ▼0.01MB] [CPU: ▼9.19ms] Passed 4 tests

An overview of server-side resources used by HoverSignal WooCommerce Social Proof
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.10 ▼5.84
Dashboard /wp-admin3.31 ▼0.0448.44 ▼8.54
Posts /wp-admin/edit.php3.36 ▲0.0043.59 ▼3.12
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.75 ▼19.25
Media Library /wp-admin/upload.php3.23 ▲0.0035.72 ▲2.92

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

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

Browser metrics Passed 4 tests

HoverSignal WooCommerce Social Proof: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.24 ▼0.051.65 ▼0.1441.50 ▼2.80
Dashboard /wp-admin2,195 ▲185.62 ▼0.0083.77 ▼5.3637.73 ▼2.01
Posts /wp-admin/edit.php2,100 ▼31.98 ▼0.0138.49 ▲0.4134.48 ▲1.49
Add New Post /wp-admin/post-new.php1,526 ▼923.15 ▲4.75596.90 ▼43.1287.51 ▲24.99
Media Library /wp-admin/upload.php1,403 ▲34.19 ▼0.03103.20 ▲1.2447.79 ▲3.01

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/hoversignal/init.php on line 353

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% 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
Attributes that require attention:
  • Requires at least: Invalid version format
You can take inspiration from this readme.txt

hoversignal/init.php 85% from 13 tests

Analyzing the main PHP file in "HoverSignal WooCommerce Social Proof" version 1.0.3
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("hoversignal.php" instead of "init.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 262 characters long)

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 plugin368 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP23760259
CSS13167
SVG13026
JavaScript14016

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.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%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icon.png1.64KB1.27KB▼ 22.26%