84% floating-click-to-contact-buttons

Code Review | Floating Click to Contact Buttons

WordPress plugin Floating Click to Contact Buttons scored 84% from 54 tests.

About plugin

  • Plugin page: floating-click-to...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.3.2
  • WordPress version: 6.3.1
  • First release: Jan 10, 2020
  • Latest release: Jan 10, 2020
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: nhan772000 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

3,000+ active / 17,408 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.35ms] Passed 4 tests

An overview of server-side resources used by Floating Click to Contact Buttons
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0540.63 ▼1.37
Dashboard /wp-admin3.35 ▲0.0446.14 ▼0.21
Posts /wp-admin/edit.php3.40 ▲0.0447.68 ▼3.96
Add New Post /wp-admin/post-new.php5.93 ▲0.0484.76 ▼15.75
Media Library /wp-admin/upload.php3.27 ▲0.0434.85 ▼0.30

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Floating Click to Contact Buttons
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,858 ▲12313.34 ▼1.042.97 ▲1.2943.29 ▼8.79
Dashboard /wp-admin2,225 ▲404.86 ▼0.98102.20 ▼3.3741.13 ▼5.12
Posts /wp-admin/edit.php2,105 ▲162.05 ▲0.0634.38 ▼6.3539.37 ▲3.51
Add New Post /wp-admin/post-new.php1,555 ▲2218.62 ▼4.50593.90 ▲0.9650.99 ▼1.19
Media Library /wp-admin/upload.php1,407 ▲194.18 ▼0.0596.80 ▲0.8642.05 ▼0.84

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× 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-click-to-contact-buttons/floating-click-to-contact-buttons.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: Please add an image for screenshot #3 (Các nút hiện ra trên Websigte.)
You can take inspiration from this readme.txt

floating-click-to-contact-buttons/floating-click-to-contact-buttons.php 92% from 13 tests

Analyzing the main PHP file in "Floating Click to Contact Buttons" version 1.0
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin889 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS3325616
PHP13030250
JavaScript18223

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.39
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

PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lienhe.png3.58KB1.07KB▼ 70.10%
support.png5.89KB1.94KB▼ 66.98%
map.png5.53KB2.03KB▼ 63.37%
messenger.png4.39KB1.64KB▼ 62.72%
phone.png11.51KB5.37KB▼ 53.33%