72% callpage

Code Review | CallPage - Free Callback Widget

WordPress plugin CallPage - Free Callback Widget scored72%from 54 tests.

About plugin

  • Plugin page: callpage
  • Plugin version: 1.0.1.21
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 19, 2016
  • Latest release: Sep 7, 2023
  • Number of updates: 76
  • Update frequency: every 36.7 days
  • Top authors: Rostyslav Knap (100%)

Code review

54 tests

User reviews

26 reviews

Install metrics

1,000+ active /38,415 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by CallPage - Free Callback Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0642.17 ▲0.43
Dashboard /wp-admin3.37 ▲0.0746.65 ▼2.66
Posts /wp-admin/edit.php3.49 ▲0.1350.30 ▼1.42
Add New Post /wp-admin/post-new.php5.97 ▲0.0899.63 ▲2.15
Media Library /wp-admin/upload.php3.30 ▲0.0635.52 ▲0.73
CallPage /wp-admin/options-general.php?page=callpage-widget3.2831.33

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 46 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for CallPage - Free Callback Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.24 ▼1.071.60 ▼0.1541.09 ▲0.23
Dashboard /wp-admin2,214 ▲234.85 ▼0.23112.93 ▲9.7246.56 ▼0.20
Posts /wp-admin/edit.php2,097 ▲81.99 ▼0.0340.07 ▲1.4135.08 ▼0.83
Add New Post /wp-admin/post-new.php1,527 ▲1323.07 ▲5.53620.11 ▼59.5847.95 ▼9.04
Media Library /wp-admin/upload.php1,396 ▲114.17 ▼0.0396.04 ▼11.0840.53 ▼2.33
CallPage /wp-admin/options-general.php?page=callpage-widget8992.0822.2148.39

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=callpage-widget
    • > Notice in wp-content/plugins/callpage/admin/partials/callpage-widget-admin-display.php+37
    Undefined index: settings-updated

SRP 0% 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 fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/callpage/public/partials/callpage-widget-public-display.php
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/callpage/admin/partials/callpage-login-display.php:108
    • > PHP Notice
      Undefined index: settings-updated in wp-content/plugins/callpage/admin/partials/callpage-login-display.php on line 104
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/callpage/admin/partials/callpage-widget-admin-display.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: calls, live call, callback, call button, call request...

callpage/callpage-widget.php 85% from 13 tests

Analyzing the main PHP file in "CallPage - Free Callback Widget" version 1.0.1.21
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("callpage.php" instead of "callpage-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin858 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PO File11131114435
PHP13175590417
JavaScript24546
CSS2080

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity3.14
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods30
▷ Static methods26.67%
▷ Public methods2583.33%
▷ Protected methods00.00%
▷ Private methods516.67%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/assets/logo-wp.png37.00KB16.67KB▼ 54.95%