88% brring-live-dialer

Code Review | Brring Live Dialer

WordPress plugin Brring Live Dialer scored 88% from 54 tests.

About plugin

  • Plugin page: brring-live-dialer
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-5.2
  • WordPress version: 5.9.2
  • First release: Jun 17, 2019
  • Latest release: Jun 17, 2019
  • Number of updates: 8
  • Update frequency: every 0.3 days
  • Top authors: boxpeg (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

60+ active / 501 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

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

An overview of server-side resources used by Brring Live Dialer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0560.28 ▼15.62
Dashboard /wp-admin3.43 ▲0.0237.54 ▼1.94
Posts /wp-admin/edit.php3.66 ▲0.0251.95 ▲10.44
Add New Post /wp-admin/post-new.php6.90 ▼0.07101.21 ▼1,158.21
Media Library /wp-admin/upload.php3.32 ▲0.0228.76 ▲1.94
Brring /wp-admin/options-general.php?page=brring-live-dialer-settings3.2627.35

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Brring Live Dialer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,800 ▲5615.80 ▲0.506.78 ▼0.782.68 ▲0.36
Dashboard /wp-admin2,893 ▲356.11 ▼0.04117.82 ▼20.77192.78 ▲27.66
Posts /wp-admin/edit.php2,693 ▲53.24 ▼0.0062.03 ▼0.57140.15 ▼6.84
Add New Post /wp-admin/post-new.php1,664 ▼8816.51 ▼5.10414.36 ▼40.23159.79 ▼44.32
Media Library /wp-admin/upload.php1,703 ▲55.55 ▲0.00152.19 ▲6.05234.93 ▼5.23
Brring /wp-admin/options-general.php?page=brring-live-dialer-settings1,1032.3754.74143.46

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=brring-live-dialer-settings
    • > Notice in wp-content/plugins/brring-live-dialer/includes/admin.php+62
    Trying to access array offset on value of type bool

SRP 50% 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
  • 3× 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/brring-live-dialer/includes/embed.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/brring-live-dialer/includes/menus.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/brring-live-dialer/includes/core.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (27 tag instead of maximum 10)
  • Screenshots: Please add an image for screenshot #4 (Wordpress plugin settings)
You can take inspiration from this readme.txt

brring-live-dialer/brring-live-dialer.php 92% from 13 tests

The primary PHP file in "Brring Live Dialer" version 1.0.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 203 characters long)

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
Good job! No executable or dangerous file extensions detected207 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP62734124
SVG13183

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/brring-icon-16x16-white.png1.88KB0.59KB▼ 68.61%