83% sticky-button

Code Review | Sticky Floating Button (Book Now, Contact, Call To Action...)

WordPress plugin Sticky Floating Button (Book Now, Contact, Call To Action...) scored83%from 54 tests.

About plugin

  • Plugin page: sticky-button
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.9.3
  • WordPress version: 6.3.1
  • First release: Apr 7, 2022
  • Latest release: Apr 14, 2022
  • Number of updates: 12
  • Update frequency: every 0.8 days
  • Top authors: digimaxme (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /5,100 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼5.84ms] Passed 4 tests

Server-side resources used by Sticky Floating Button (Book Now, Contact, Call To Action...)
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1346.61 ▲8.44
Dashboard /wp-admin3.45 ▲0.1047.96 ▼12.69
Posts /wp-admin/edit.php3.49 ▲0.1343.84 ▼5.63
Add New Post /wp-admin/post-new.php6.04 ▲0.1681.22 ▼11.32
Media Library /wp-admin/upload.php3.36 ▲0.1339.11 ▲6.30

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Sticky Floating Button (Book Now, Contact, Call To Action...)
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7213.84 ▼0.541.15 ▼0.5041.27 ▼2.85
Dashboard /wp-admin2,245 ▲575.32 ▲0.45104.60 ▲1.8486.46 ▲46.52
Posts /wp-admin/edit.php2,127 ▲352.35 ▲0.3536.63 ▼5.1934.69 ▼4.46
Add New Post /wp-admin/post-new.php7,009 ▲5,49523.98 ▲6.49962.10 ▲285.3247.19 ▼10.10
Media Library /wp-admin/upload.php1,415 ▲334.49 ▲0.2399.10 ▲2.6264.50 ▲19.42

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sticky-button/index.php:12

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

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed: You can take inspiration from this readme.txt

sticky-button/index.php 85% from 13 tests

Analyzing the main PHP file in "Sticky Floating Button (Book Now, Contact, Call To Action...)" version 1.0
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("sticky-button.php" instead of "index.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 143 characters long)

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
No dangerous file extensions were detected716 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP110641711
JavaScript1215

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
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 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 1.16MB with 0.63MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png59.96KB23.30KB▼ 61.14%
assets/screenshot-4.png86.20KB26.33KB▼ 69.46%
assets/screenshot-3.png449.44KB135.42KB▼ 69.87%
assets/icon.png0.77KB0.84KB0.00%
assets/screenshot-2.png582.71KB185.88KB▼ 68.10%