88% this-call-button

Code Review | ThisCallButton

WordPress plugin ThisCallButton scored 88% from 54 tests.

About plugin

  • Plugin page: this-call-button
  • Plugin version: 1.20
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.5
  • WordPress version: 5.8.1
  • First release: Oct 19, 2020
  • Latest release: Nov 19, 2020
  • Number of updates: 8
  • Update frequency: every 4.3 days
  • Top authors: thiscallbutton (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 144 total downloads

Benchmarks

Plugin footprint Passed 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.03MB] [CPU: ▼143.53ms] Passed 4 tests

An overview of server-side resources used by ThisCallButton
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1431.34 ▲8.69
Dashboard /wp-admin3.10 ▲0.0445.04 ▲2.09
Posts /wp-admin/edit.php3.15 ▲0.0446.63 ▲1.19
Add New Post /wp-admin/post-new.php5.46 ▲0.0388.45 ▼574.60
Media Library /wp-admin/upload.php3.04 ▲0.0335.24 ▼2.80
This Call Button /wp-admin/options-general.php?page=thiscallbutton_setting_menu2.9928.38

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

ThisCallButton: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲8815.83 ▲0.2610.55 ▲1.9748.17 ▼1.74
Dashboard /wp-admin2,975 ▲446.07 ▼0.06136.79 ▼5.80106.25 ▼16.61
Posts /wp-admin/edit.php2,744 ▲82.72 ▲0.0064.62 ▼0.9894.26 ▼1.65
Add New Post /wp-admin/post-new.php1,686 ▲7118.75 ▼2.60371.43 ▲105.79109.13 ▲10.94
Media Library /wp-admin/upload.php1,815 ▲85.02 ▼0.01150.57 ▲6.75113.29 ▼14.81
This Call Button /wp-admin/options-general.php?page=thiscallbutton_setting_menu1,0922.1057.2578.92

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=thiscallbutton_setting_menu
    • > Notice in wp-content/plugins/this-call-button/thiscallbutton.php+121
    Undefined variable: text

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× 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/this-call-button/thiscallbutton.php:22

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)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: idd calls, call button

this-call-button/thiscallbutton.php 77% from 13 tests

The principal PHP file in "ThisCallButton" v. 1.20 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("this-call-button.php" instead of "thiscallbutton.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Description: The description should be shorter than 140 characters (currently 218 characters long)

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
No dangerous file extensions were detected143 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13925143

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions9
▷ Named functions888.89%
▷ Anonymous functions111.11%
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
There are no PNG files in this plugin