84% floating-button-call-to-action

Code Review | Floating Button Call To Action

WordPress plugin Floating Button Call To Action scored84%from 54 tests.

About plugin

  • Plugin page: floating-button-c...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.2
  • WordPress version: 6.3.1
  • First release: Jun 15, 2023
  • Latest release: Jun 15, 2023
  • Number of updates: 9
  • Update frequency: N/A
  • Top authors: danscalco (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /123 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Floating Button Call To Action
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.67 ▼4.34
Dashboard /wp-admin3.32 ▼0.0250.25 ▼12.88
Posts /wp-admin/edit.php3.37 ▲0.0243.30 ▼3.36
Add New Post /wp-admin/post-new.php5.90 ▲0.0282.51 ▼14.65
Media Library /wp-admin/upload.php3.24 ▲0.0234.34 ▲0.67
Floating CTA Button /wp-admin/options-general.php?page=cta-kit-settings3.2138.27

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 8 new options
New WordPress options
cta_kit_enable_page_post_buttons
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
cta_kit_enable_default_button
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Floating Button Call To Action
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,890 ▲14413.98 ▼0.396.00 ▲3.9645.53 ▲1.80
Dashboard /wp-admin2,210 ▲255.97 ▲1.1096.01 ▼21.6636.96 ▼10.75
Posts /wp-admin/edit.php2,096 ▲72.02 ▲0.0335.02 ▲0.1533.87 ▼1.06
Add New Post /wp-admin/post-new.php6,249 ▲4,73525.84 ▲2.26872.87 ▲218.0658.57 ▲7.92
Media Library /wp-admin/upload.php1,395 ▲74.15 ▼0.1293.40 ▼3.5643.17 ▲0.61
Floating CTA Button /wp-admin/options-general.php?page=cta-kit-settings9702.2324.3232.59

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
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • cta_kit_enable_page_post_buttons
    • can_compress_scripts
    • cta_kit_enable_default_button
    • 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
Even though no errors were found, this is by no means an exhaustive test

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
Please take a closer look at the following
  • 2× 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/floating-button-call-to-action/cta-kit-block/index.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/floating-button-call-to-action/floating-button-call-to-action.php:14

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (Floating Button Call To Action Settings Page), #2 (Live on the site.)
Please take inspiration from this readme.txt

floating-button-call-to-action/floating-button-call-to-action.php Passed 13 tests

The principal PHP file in "Floating Button Call To Action" v. 1.0 is loaded by WordPress automatically on each request
51 characters long description:
Adds a floating button call to action to your site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin607 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS1491255
PHP35021237
JavaScript3143115

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin