78% gp-sticky-buttons

Code Review | Click to Call, SMS, Messages, Email and 40+ social icons - GP Sticky buttons

WordPress plugin Click to Call, SMS, Messages, Email and 40+ social icons - GP Sticky buttons scored78%from 54 tests.

About plugin

  • Plugin page: gp-sticky-buttons
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-6.3
  • WordPress version: 6.3.1
  • First release: May 24, 2022
  • Latest release: Aug 4, 2023
  • Number of updates: 14
  • Update frequency: every 82.7 days
  • Top authors: gingerplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,078 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.51ms] Passed 4 tests

An overview of server-side resources used by Click to Call, SMS, Messages, Email and 40+ social icons - GP Sticky buttons
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.24 ▲0.60
Dashboard /wp-admin3.35 ▲0.0549.13 ▼3.97
Posts /wp-admin/edit.php3.40 ▲0.0449.40 ▼6.65
Add New Post /wp-admin/post-new.php5.93 ▲0.0491.95 ▼12.03
Media Library /wp-admin/upload.php3.27 ▲0.0437.39 ▲2.71
Contact Us /wp-admin/admin.php?page=gp-sticky-buttons-contact-us3.2934.08
Dashboard /wp-admin/admin.php?page=gp-sticky-buttons3.4034.84

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 64 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Click to Call, SMS, Messages, Email and 40+ social icons - GP Sticky buttons
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5514.24 ▼0.031.76 ▼0.0337.34 ▼3.00
Dashboard /wp-admin2,222 ▲455.62 ▼0.0490.89 ▼3.5537.53 ▼8.65
Posts /wp-admin/edit.php2,127 ▲272.03 ▲0.0639.53 ▲4.3234.94 ▼3.75
Add New Post /wp-admin/post-new.php1,555 ▲1822.90 ▲4.52655.04 ▼5.8354.34 ▼7.86
Media Library /wp-admin/upload.php1,427 ▲244.17 ▼0.0195.97 ▼3.5644.58 ▼0.18
Contact Us /wp-admin/admin.php?page=gp-sticky-buttons-contact-us8832.0028.3266.35
Dashboard /wp-admin/admin.php?page=gp-sticky-buttons1,2632.2241.5247.98

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 13× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/gp-sticky-buttons/admin/templates/widget-preview.php
    • > /wp-content/plugins/gp-sticky-buttons/index.php
    • > /wp-content/plugins/gp-sticky-buttons/admin/templates/admin-dashboard.php
    • > /wp-content/plugins/gp-sticky-buttons/includes/front-end.php
    • > /wp-content/plugins/gp-sticky-buttons/admin/admin.php
    • > /wp-content/plugins/gp-sticky-buttons/admin/templates/triggers.php
    • > /wp-content/plugins/gp-sticky-buttons/admin/templates/admin-help.php
    • > /wp-content/plugins/gp-sticky-buttons/admin/templates/admin-settings.php
    • > /wp-content/plugins/gp-sticky-buttons/includes/settings.php
    • > /wp-content/plugins/gp-sticky-buttons/admin/templates/other-settings.php
  • 10× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/gp-sticky-buttons/templates/template.php on line 3
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/gp-sticky-buttons/templates/template.php on line 4
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/gp-sticky-buttons/templates/template.php on line 2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/gp-sticky-buttons/templates/template.php on line 4
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/gp-sticky-buttons/templates/template.php on line 3
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/gp-sticky-buttons/templates/template.php on line 2
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/gp-sticky-buttons/templates/template.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_is_mobile() in wp-content/plugins/gp-sticky-buttons/templates/template.php:5
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/gp-sticky-buttons/templates/template.php on line 2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/gp-sticky-buttons/templates/template.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
9 plugin tags: facebook messenger, social buttons, call now button, viber, instagram...

gp-sticky-buttons/index.php 92% from 13 tests

The entry point to "Click to Call, SMS, Messages, Email and 40+ social icons - GP Sticky buttons" version 1.0.3 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("gp-sticky-buttons.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
There were no executable files found in this plugin13,465 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
SVG30129,061
PHP142753883,999
JavaScript103941388
HTML1109
CSS8048

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity31.00
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity4.08
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods39
▷ Static methods1128.21%
▷ Public methods39100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
There were not PNG files found in your plugin