78% quick-call-button

Code Review | Quick Call Button

WordPress plugin Quick Call Button scored78%from 54 tests.

About plugin

  • Plugin page: quick-call-button
  • Plugin version: 1.2.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2
  • WordPress version: 6.3.1
  • First release: Oct 12, 2017
  • Latest release: Jul 7, 2023
  • Number of updates: 37
  • Update frequency: every 56.6 days
  • Top authors: longvietweb (100%)

Code review

54 tests

User reviews

23 reviews

Install metrics

10,000+ active /130,825 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
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼7.41ms] Passed 4 tests

This is a short check of server-side resources used by Quick Call Button
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0837.75 ▼4.17
Dashboard /wp-admin3.39 ▲0.0547.07 ▼14.50
Posts /wp-admin/edit.php3.44 ▲0.0951.81 ▲6.45
Add New Post /wp-admin/post-new.php5.98 ▲0.0991.53 ▼8.35
Media Library /wp-admin/upload.php3.31 ▲0.0831.08 ▼2.60
Quick Call Button /wp-admin/options-general.php?page=lv_quick_call_button3.2627.76

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Quick Call Button
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,911 ▲16514.28 ▼0.2720.35 ▲18.6043.10 ▼0.18
Dashboard /wp-admin2,196 ▲195.62 ▼0.0582.31 ▼16.1238.66 ▼7.89
Posts /wp-admin/edit.php2,104 ▲41.99 ▲0.0037.40 ▼0.8733.13 ▼1.82
Add New Post /wp-admin/post-new.php6,243 ▲4,71725.92 ▲2.20857.16 ▲180.3654.31 ▼2.22
Media Library /wp-admin/upload.php1,407 ▲74.15 ▲0.0593.08 ▼29.4643.50 ▼4.65
Quick Call Button /wp-admin/options-general.php?page=lv_quick_call_button1,5132.3959.0423.53

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=lv_quick_call_button
    • > Notice in wp-content/plugins/quick-call-button/quick-call-button.php+241
    Undefined index: call_image

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
Please take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/quick-call-button/form.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/quick-call-button/quick-call-button.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
10 plugin tags: call now button, call, contact, mobile, phone...

quick-call-button/quick-call-button.php 92% from 13 tests

The main PHP script in "Quick Call Button" version 1.2.9 is automatically included on every request by WordPress
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin515 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP25879376
PO File14242118
JavaScript421117
CSS2004

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity3.29
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/quick-call-button-phone.png0.43KB0.43KB0.00%
images/quick-call-button.png0.62KB0.63KB0.00%