84% call-now-button-ultimate

Code Review | Call Now Button Ultimate

WordPress plugin Call Now Button Ultimate scored84%from 54 tests.

About plugin

  • Plugin page: call-now-button-u...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.9.1
  • WordPress version: 6.3.1
  • First release: Dec 21, 2017
  • Latest release: Jan 9, 2018
  • Number of updates: 10
  • Update frequency: every 1.9 days
  • Top authors: gethuman (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

400+ active /7,456 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.11MB] [CPU: ▲0.77ms] Passed 4 tests

This is a short check of server-side resources used by Call Now Button Ultimate
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1042.37 ▲0.08
Dashboard /wp-admin3.41 ▲0.1151.88 ▼1.77
Posts /wp-admin/edit.php3.53 ▲0.1749.64 ▲3.57
Add New Post /wp-admin/post-new.php6.01 ▲0.1396.40 ▲1.21
Media Library /wp-admin/upload.php3.34 ▲0.1141.36 ▲4.77

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Call Now Button Ultimate: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲6314.36 ▲0.041.72 ▼0.5646.33 ▲5.73
Dashboard /wp-admin2,230 ▲535.76 ▲0.0889.49 ▼2.6040.40 ▼4.20
Posts /wp-admin/edit.php2,140 ▲402.29 ▲0.2852.68 ▲15.3342.65 ▲7.30
Add New Post /wp-admin/post-new.php1,711 ▲18322.17 ▼0.88594.23 ▼82.0934.59 ▼15.43
Media Library /wp-admin/upload.php1,429 ▲294.50 ▲0.30101.05 ▼15.2641.28 ▼4.47

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/call-now-button-ultimate/gethuman-call-now-button-ultimate.php:43

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: email us button, call us button, mobile contact button, call now, contact us button...

call-now-button-ultimate/gethuman-call-now-button-ultimate.php 85% from 13 tests

This is the main PHP file of "Call Now Button Ultimate" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("call-now-button-ultimate.php" instead of "gethuman-call-now-button-ultimate.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 181 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
No dangerous file extensions were detected432 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1958427
JavaScript1205

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions34
▷ Named functions34100.00%
▷ Anonymous functions00.00%
Constants22
▷ Global constants22100.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
No PNG images were found in this plugin