84% call-from-web

Code Review | Call From Web - Simple Click to Call Button for WordPress

WordPress plugin Call From Web - Simple Click to Call Button for WordPress scored 84% from 54 tests.

About plugin

  • Plugin page: call-from-web
  • Plugin version: 4.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2
  • WordPress version: 6.3.1
  • First release: May 19, 2014
  • Latest release: Jun 29, 2023
  • Number of updates: 30
  • Update frequency: every 111.0 days
  • Top authors: call_from_web (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 6,564 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
This plugin's installer ran successfully

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

Server-side resources used by Call From Web - Simple Click to Call Button for WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.29 ▼2.23
Dashboard /wp-admin3.32 ▲0.0243.27 ▼7.17
Posts /wp-admin/edit.php3.37 ▲0.0250.10 ▲1.92
Add New Post /wp-admin/post-new.php5.92 ▲0.0484.29 ▼12.48
Media Library /wp-admin/upload.php3.24 ▲0.0232.19 ▲0.16

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 44 new files
Database: no new tables, 9 new options
New WordPress options
can_compress_scripts
cfw_secret_key
cfw_pairing_token
widget_theysaidso_widget
theysaidso_admin_options
cfw_pairing_callback_token
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Call From Web - Simple Click to Call Button for WordPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,971 ▲23618.68 ▲4.0292.63 ▲90.5445.63 ▼0.02
Dashboard /wp-admin2,207 ▲195.83 ▲0.78105.69 ▼3.0436.23 ▼5.24
Posts /wp-admin/edit.php2,096 ▲72.05 ▲0.0536.52 ▼3.1936.44 ▲1.16
Add New Post /wp-admin/post-new.php1,519 ▼1623.40 ▲0.12645.61 ▼19.0954.76 ▲4.91
Media Library /wp-admin/upload.php1,392 ▲14.30 ▲0.1494.37 ▼5.2939.45 ▼7.07

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 9 options in the database
    • db_upgraded
    • cfw_pairing_callback_token
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • cfw_secret_key
    • widget_recent-comments
    • cfw_pairing_token

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 4× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/call-from-web/trunk/public/partials/call-from-web-public-display.php
    • > /wp-content/plugins/call-from-web/admin/partials/call-from-web-admin-display.php
    • > /wp-content/plugins/call-from-web/trunk/admin/partials/call-from-web-admin-display.php
    • > /wp-content/plugins/call-from-web/public/partials/call-from-web-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

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
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
You can take inspiration from this readme.txt

call-from-web/call-from-web.php Passed 13 tests

The principal PHP file in "Call From Web - Simple Click to Call Button for WordPress" v. 4.0.1 is loaded by WordPress automatically on each request
45 characters long description:
Let your visitors call you by phone for free.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin360 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP14173675354
JavaScript24546
CSS2080

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity4.43
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity1.77
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods62
▷ Static methods46.45%
▷ Public methods5080.65%
▷ Protected methods00.00%
▷ Private methods1219.35%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin