84% sticky-floating-forms-lite

Code Review | Sticky Floating Forms Lite

WordPress plugin Sticky Floating Forms Lite scored84%from 54 tests.

About plugin

  • Plugin page: sticky-floating-f...
  • Plugin version: 1.0.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3.2
  • WordPress version: 6.3.1
  • First release: Mar 16, 2022
  • Latest release: Oct 15, 2023
  • Number of updates: 12
  • Update frequency: every 48.2 days
  • Top authors: codeworkweb (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /13,703 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.10MB] [CPU: ▼6.09ms] Passed 4 tests

A check of server-side resources used by Sticky Floating Forms Lite
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1140.96 ▲3.08
Dashboard /wp-admin3.43 ▲0.0850.98 ▼7.96
Posts /wp-admin/edit.php3.55 ▲0.1844.28 ▼3.44
Add New Post /wp-admin/post-new.php6.01 ▲0.1280.24 ▼14.12
Media Library /wp-admin/upload.php3.33 ▲0.1035.01 ▲1.18

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Sticky Floating Forms Lite
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,104 ▲33315.63 ▲1.444.93 ▲3.1638.99 ▼1.80
Dashboard /wp-admin2,390 ▲2126.46 ▲0.74107.06 ▲2.8638.21 ▼0.87
Posts /wp-admin/edit.php2,319 ▲2163.63 ▲1.6950.78 ▲15.5831.66 ▼4.32
Add New Post /wp-admin/post-new.php1,574 ▲4823.41 ▲0.21675.84 ▲22.4535.43 ▼20.10
Media Library /wp-admin/upload.php1,465 ▲714.42 ▲0.2783.65 ▼12.8446.59 ▲3.27

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 7× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sticky-floating-forms-lite/frontend/dynamic-styles.php:7
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/sticky-floating-forms-lite/admin/import-export.php:2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/sticky-floating-forms-lite/admin/display.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/sticky-floating-forms-lite/frontend/frontend.php:77
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/sticky-floating-forms-lite/admin/rules.php:2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/sticky-floating-forms-lite/admin/content-options.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sticky-floating-forms-lite/sticky-floating-forms-class.php:48

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

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: sticky contact, popup messages, cf7, contact form 7, sticky forms...

sticky-floating-forms-lite/sticky-floating-forms-lite.php 92% from 13 tests

The main PHP file in "Sticky Floating Forms Lite" ver. 1.0.8 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 380 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,747 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
CSS37622895
PHP9311117772
JavaScript3321480

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity11.00
▷ Minimum class complexity1.00
▷ Maximum class complexity27.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods29
▷ Static methods517.24%
▷ Public methods29100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
16 PNG files occupy 0.18MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/img/form-container.png9.25KB5.13KB▼ 44.55%
admin/assets/img/display-rules.png14.76KB8.63KB▼ 41.55%
admin/assets/img/b1.png2.99KB0.17KB▼ 94.44%
admin/assets/img/r1.png2.98KB0.16KB▼ 94.62%
admin/assets/img/attached.png3.63KB0.46KB▼ 87.41%