67% mystickyelements

Code Review | All-in-one Floating Contact Form, Call, Chat, and 50+ Social Icon Tabs - My Sticky Elements

WordPress plugin All-in-one Floating Contact Form, Call, Chat, and 50+ Social Icon Tabs - My Sticky Elements scored67%from 54 tests.

About plugin

  • Plugin page: mystickyelements
  • Plugin version: 2.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-6.4
  • WordPress version: 6.3.1
  • First release: Jul 13, 2014
  • Latest release: Nov 6, 2023
  • Number of updates: 273
  • Update frequency: every 12.5 days
  • Top authors: galdub (83.88%)premiocommit (8.79%)damiroquai (8.06%)

Code review

54 tests

User reviews

492 reviews

Install metrics

40,000+ active /490,898 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲1.24MB] [CPU: ▲0.77ms] 75% from 4 tests

Server-side resources used by All-in-one Floating Contact Form, Call, Chat, and 50+ Social Icon Tabs - My Sticky Elements
It is recommended to improve the following
  • CPU: Total CPU usage must kept under 500.00ms (currently 2,547.79ms on /wp-admin/admin.php?page=recommended-plugins)
PageMemory (MB)CPU Time (ms)
Home /4.72 ▲1.2548.19 ▲5.36
Dashboard /wp-admin4.60 ▲1.2550.63 ▼12.40
Posts /wp-admin/edit.php4.65 ▲1.2950.27 ▲4.98
Add New Post /wp-admin/post-new.php7.12 ▲1.2396.75 ▲5.12
Media Library /wp-admin/upload.php4.46 ▲1.2341.32 ▲7.00
Integrations /wp-admin/admin.php?page=my-sticky-elements-integration4.4542.62
Contact Form Leads /wp-admin/admin.php?page=my-sticky-elements-leads4.4439.64
Recommended Plugins /wp-admin/admin.php?page=recommended-plugins4.932,547.79
Dashboard /wp-admin/admin.php?page=my-sticky-elements4.4652.31
+ Create New Widget /wp-admin/admin.php?page=my-sticky-elements&widget=04.4643.86
Widget Analytics /wp-admin/admin.php?page=my-sticky-elements-analytics4.4438.42
Upgrade to Pro ⭐️ /wp-admin/admin.php?page=my-sticky-elements-upgrade4.6742.82

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 156 new files
Database: 1 new table, 11 new options
New tables
wp_mystickyelement_contact_lists
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
mystickyelements_show_upgrade_box_after
mystickyelements-update_2_0
mystickyelements_intro_popup
mysticky_element_update_message
can_compress_scripts
...

Browser metrics Passed 4 tests

Checking browser requirements for All-in-one Floating Contact Form, Call, Chat, and 50+ Social Icon Tabs - My Sticky Elements
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,973 ▲18613.46 ▼0.8913.76 ▲11.7742.33 ▼2.30
Dashboard /wp-admin2,245 ▲685.50 ▼0.1589.20 ▲0.2141.34 ▼0.51
Posts /wp-admin/edit.php2,150 ▲501.95 ▼0.0637.25 ▲0.2635.33 ▼2.52
Add New Post /wp-admin/post-new.php1,566 ▲4023.12 ▲0.08634.28 ▲44.0354.40 ▼0.81
Media Library /wp-admin/upload.php1,444 ▲504.23 ▲0.0599.69 ▼7.7244.33 ▲1.09
Integrations /wp-admin/admin.php?page=my-sticky-elements-integration1,0921.6723.3542.01
Contact Form Leads /wp-admin/admin.php?page=my-sticky-elements-leads1,0581.6627.2631.07
Recommended Plugins /wp-admin/admin.php?page=recommended-plugins1,2441.8024.8540.15
Dashboard /wp-admin/admin.php?page=my-sticky-elements1,6381.6928.4254.92
+ Create New Widget /wp-admin/admin.php?page=my-sticky-elements&widget=01,6191.6627.2437.38
Widget Analytics /wp-admin/admin.php?page=my-sticky-elements-analytics1,0501.6622.5456.24
Upgrade to Pro ⭐️ /wp-admin/admin.php?page=my-sticky-elements-upgrade5,2132.1557.82110.19

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_mystickyelement_contact_lists
  • This plugin did not uninstall successfully, leaving 11 options in the database
    • db_upgraded
    • mystickyelements-update_2_0
    • mysticky_element_update_message
    • widget_recent-comments
    • can_compress_scripts
    • mystickyelements_show_upgrade_box_after
    • theysaidso_admin_options
    • widget_recent-posts
    • mystickyelement_show_affiliate_box_after
    • mystickyelements_intro_popup
    • ...

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
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/mystickyelements/mystickyelements.php
  • 22× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/mystickyelements/admin/sticktelements-preview.php on line 6
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/mystickyelements/admin/social-media.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/mystickyelements/mystickyelements-deactivate-form.php:122
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin-install.php' (include_path='.:/usr/share/php') in wp-content/plugins/mystickyelements/recommended-plugins.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/mystickyelements/admin/social-media.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/mystickyelements/admin/general-settings.php:35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mystickyelements/includes/class-affiliate.php:7
    • > PHP Notice
      Undefined variable: contact_field in wp-content/plugins/mystickyelements/admin/social-media.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/mystickyelements/admin/stickyelements-settings.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mystickyelements/mystickyelements-front.php:11

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 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
Please take inspiration from this readme.txt

mystickyelements/mystickyelements.php 92% from 13 tests

The main PHP script in "All-in-one Floating Contact Form, Call, Chat, and 50+ Social Icon Tabs - My Sticky Elements" version 2.1.5 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 175 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected41,566 lines of code in 88 files:
LanguageFilesBlank linesComment linesLines of code
CSS1528327617,342
PHP251,12134913,764
JavaScript175914719,086
SVG30051,294
PO File1328080

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
These items need your attention
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 294)
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity161.00
▷ Minimum class complexity9.00
▷ Maximum class complexity399.00
Average method complexity6.82
▷ Minimum method complexity1.00
▷ Maximum method complexity294.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods165
▷ Static methods10.61%
▷ Public methods165100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
44 PNG files occupy 0.81MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/owner.png46.48KB16.16KB▼ 65.23%
img/white/flickr.png0.28KB0.37KB0.00%
images/testimonial.png9.84KB5.10KB▼ 48.19%
img/white/soundcloud.png0.86KB1.28KB0.00%
images/line-logo.png2.60KB1.70KB▼ 34.83%