84% floating-contact

Code Review | Floating Contact Button

WordPress plugin Floating Contact Button scored84%from 54 tests.

About plugin

  • Plugin page: floating-contact
  • Plugin version: 2.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.3
  • WordPress version: 6.3.1
  • First release: May 23, 2019
  • Latest release: Aug 25, 2023
  • Number of updates: 166
  • Update frequency: every 9.4 days
  • Top authors: cmsgeek (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

1,000+ active /13,226 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼8.99ms] Passed 4 tests

This is a short check of server-side resources used by Floating Contact Button
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0722.98 ▼16.66
Dashboard /wp-admin3.32 ▼0.0349.29 ▼12.28
Posts /wp-admin/edit.php3.37 ▲0.0151.53 ▲1.53
Add New Post /wp-admin/post-new.php5.90 ▲0.0197.42 ▼8.56
Media Library /wp-admin/upload.php3.24 ▲0.0137.75 ▲3.25

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Floating Contact Button
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲5114.35 ▼0.061.64 ▼0.2643.52 ▲1.08
Dashboard /wp-admin2,214 ▲445.62 ▼0.0492.43 ▼10.8438.34 ▼1.01
Posts /wp-admin/edit.php2,116 ▲162.01 ▲0.0441.29 ▲0.9435.98 ▼0.10
Add New Post /wp-admin/post-new.php1,539 ▲1323.55 ▲0.37689.55 ▲35.5451.21 ▼9.18
Media Library /wp-admin/upload.php1,419 ▲164.26 ▲0.0496.85 ▼7.5444.54 ▲1.02

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/floating-contact/floating-contact.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: form, floating contact, contact button, button, feedback button...

floating-contact/floating-contact.php Passed 13 tests

The main file in "Floating Contact Button" v. 2.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
88 characters long description:
Integrates a floating contact button and opens an modal with your favorite contact form.

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 plugin500 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS2480280
PHP13422158
PO File1121462

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 are no PNG files in this plugin