63% instacontact

Code Review | Free Call Now Button by InstaContact - Best WordPress Click To Call Plugin

WordPress plugin Free Call Now Button by InstaContact - Best WordPress Click To Call Plugin scored63%from 54 tests.

About plugin

  • Plugin page: instacontact
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.9.8
  • WordPress version: 6.3.1
  • First release: Sep 24, 2018
  • Latest release: Sep 24, 2018
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: instacontact (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /916 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.01MB] [CPU: ▼10.68ms] Passed 4 tests

An overview of server-side resources used by Free Call Now Button by InstaContact - Best WordPress Click To Call Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.04 ▼1.36
Dashboard /wp-admin3.33 ▼0.0147.79 ▼12.08
Posts /wp-admin/edit.php3.38 ▲0.0348.12 ▼6.37
Add New Post /wp-admin/post-new.php5.91 ▲0.0387.62 ▼22.91
Media Library /wp-admin/upload.php3.26 ▲0.0338.84 ▲0.83
Campaigns /wp-admin/admin.php?page=instacontact-campaigns3.2831.52
InstaContact /wp-admin/admin.php?page=instacontact-settings3.2032.08

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
instacontact
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Free Call Now Button by InstaContact - Best WordPress Click To Call Plugin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8314.24 ▼0.111.80 ▼0.1142.05 ▼1.01
Dashboard /wp-admin2,235 ▲585.52 ▼0.1587.75 ▼2.7038.40 ▼2.14
Posts /wp-admin/edit.php2,140 ▲432.03 ▲0.0238.76 ▼1.3337.99 ▲2.78
Add New Post /wp-admin/post-new.php1,553 ▲2723.23 ▲0.03687.85 ▲5.8954.76 ▼6.09
Media Library /wp-admin/upload.php1,437 ▲344.18 ▼0.02110.22 ▲7.4348.85 ▲3.49
Campaigns /wp-admin/admin.php?page=instacontact-campaigns8181.9923.3350.44
InstaContact /wp-admin/admin.php?page=instacontact-settings9162.0623.7429.79

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Error in wp-content/plugins/instacontact/instacontact.php+413
    Uncaught Error: Class 'OMAPI' not found in wp-content/plugins/instacontact/instacontact.php:413
    Stack trace:
    #0 wp-includes/class-wp-hook.php(310): instacontact_uninstall_hook()
    #1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #2 wp-includes/plugin.php(517): WP_Hook->do_action()
    #3 wp-admin/includes/plugin.php(1269): do_action()
    #4 wp-admin/includes/plugin.php(960): uninstall_plugin()
  • Incomplete uninstall procedure, leaving 9 files (0.04MB) in the plugin directory
    • (new file) assets/css/settings.css
    • (new file) instacontact.php
    • (new file) ICAPI/Campaigns.php
    • (new file) ICAPI/Settings.php
    • (new file) assets/js/settings.js
    • (new file) readme.txt
    • (new file) ICAPI/Api.php
    • (new file) assets/logo.svg
    • (new file) assets/js/campaigns.js
  • Zombie WordPress options detected upon uninstall: 8 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • instacontact
    • widget_recent-comments
    • db_upgraded
    • recovery_mode_email_last_sent
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=instacontact-campaigns
    • > Notice in wp-content/plugins/instacontact/ICAPI/Campaigns.php+62
    Undefined index: email
    • > GET request to /wp-admin/admin.php?page=instacontact-campaigns
    • > Notice in wp-content/plugins/instacontact/ICAPI/Campaigns.php+62
    Undefined index: api_key
    • > GET request to /wp-admin/admin.php?page=instacontact-settings
    • > Notice in wp-content/plugins/instacontact/ICAPI/Settings.php+56
    Undefined index: universal_snippet

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: No descriptions were found for these screenshots #1, #2 in instacontact/assets to your readme.txt
  • Tags: Please reduce the number of tags, currently 30 tag instead of maximum 10
The official readme.txt might help

instacontact/instacontact.php 85% from 13 tests

This is the main PHP file of "Free Call Now Button by InstaContact - Best WordPress Click To Call Plugin" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
  • Domain Path: The domain path should be prefixed with a forward slash character ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin735 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP4151381576
CSS131133
JavaScript11225
SVG1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity16.00
▷ Minimum class complexity5.00
▷ Maximum class complexity27.00
Average method complexity2.46
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods41
▷ Static methods37.32%
▷ Public methods41100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants342.86%
▷ Class constants457.14%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin