84% quiits-call-me-back-widget

Code Review | Free Call Me Back Widget

WordPress plugin Free Call Me Back Widget scored84%from 54 tests.

About plugin

  • Plugin page: quiits-call-me-ba...
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.0.3
  • WordPress version: 6.3.1
  • First release: Dec 15, 2018
  • Latest release: Jan 29, 2019
  • Number of updates: 6
  • Update frequency: every 8.2 days
  • Top authors: quiits (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,705 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
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.30ms] Passed 4 tests

This is a short check of server-side resources used by Free Call Me Back Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.68 ▲1.01
Dashboard /wp-admin3.31 ▲0.0143.39 ▼8.88
Posts /wp-admin/edit.php3.36 ▲0.0045.61 ▼2.59
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.85 ▲4.61
Media Library /wp-admin/upload.php3.24 ▲0.0033.55 ▲1.27

Server storage [IO: ▲0.00MB] [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: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Free Call Me Back Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲7214.80 ▲0.502.10 ▼0.1635.33 ▼15.47
Dashboard /wp-admin2,206 ▲215.77 ▼0.08100.77 ▼17.5039.59 ▼6.70
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0839.07 ▲2.9534.41 ▼0.46
Add New Post /wp-admin/post-new.php1,528 ▼623.10 ▼0.02597.23 ▼45.4950.74 ▼5.99
Media Library /wp-admin/upload.php1,391 ▲64.21 ▼0.0298.31 ▼0.9844.61 ▲0.57

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

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)
Everything seems fine, however 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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quiits-call-me-back-widget/callmeback.php:17

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 96% 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
10 plugin tags: call me back, request a call back, click to call, call me button, call request...

quiits-call-me-back-widget/callmeback.php 92% from 13 tests

"Free Call Me Back Widget" version 3.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("quiits-call-me-back-widget.php" instead of "callmeback.php")

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
Good job! No executable or dangerous file extensions detected13 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP141013

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected