10% bigcontact

Code Review | BigContact Contact Page

WordPress plugin BigContact Contact Page scored 10% from 54 tests.

About plugin

  • Plugin page: bigcontact
  • Plugin version: 1.5.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.9.1
  • WordPress version: 5.8.1
  • First release: May 22, 2012
  • Latest release: Jul 5, 2014
  • Number of updates: 103
  • Update frequency: every 7.5 days
  • Top authors: bigemployee (100%)

Code review

54 tests

User reviews

20 reviews

Install metrics

1,000+ active / 111,916 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/bigcontact/BigContact.php+26
    Methods with the same name as their class will not be constructors in a future version of PHP; BigContact has a deprecated constructor

Server metrics [RAM: ▼1.72MB] [CPU: ▼185.59ms] Passed 4 tests

This is a short check of server-side resources used by BigContact Contact Page
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /1.91 ▼0.924.25 ▼18.97
Dashboard /wp-admin1.93 ▼1.133.74 ▼35.30
Posts /wp-admin/edit.php1.93 ▼1.184.10 ▼27.35
Add New Post /wp-admin/post-new.php1.93 ▼3.513.92 ▼660.24
Media Library /wp-admin/upload.php1.93 ▼1.073.92 ▼19.45
Settings /wp-admin/admin.php?page=big-contact-settings1.934.58
Form Options /wp-admin/admin.php?page=big-contact1.934.81

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 171 new files
Database: 4 new tables, 2 new options
New tables
wp_big_contacts_emails
wp_big_contacts_phones
wp_big_contacts
wp_big_contacts_settings
New WordPress options
BigContact_DB_V
widget_bcwidget

Browser metrics Passed 4 tests

Checking browser requirements for BigContact Contact Page
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,835 ▲24715.95 ▲0.379.07 ▲3.0576.52 ▲0.71
Dashboard /wp-admin2,967 ▲716.11 ▼0.03118.08 ▼27.44169.56 ▲0.71
Posts /wp-admin/edit.php2,775 ▲383.24 ▲0.0062.54 ▼0.38137.11 ▼2.96
Add New Post /wp-admin/post-new.php3,938 ▲20819.08 ▲3.44427.32 ▼12.97176.40 ▲10.54
Media Library /wp-admin/upload.php1,784 ▲385.53 ▲0.00148.16 ▲8.62192.78 ▲5.32
Settings /wp-admin/admin.php?page=big-contact-settings2,0472.3853.81196.73
Form Options /wp-admin/admin.php?page=big-contact1,8833.2462.90173.14

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/bigcontact/BigContact.php+26
    Methods with the same name as their class will not be constructors in a future version of PHP; BigContact has a deprecated constructor
  • This plugin does not fully uninstall, leaving 1 option in the database
    • widget_bcwidget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=big-contact
    • > Deprecated in wp-content/plugins/bigcontact/BigContact.php+26
    Methods with the same name as their class will not be constructors in a future version of PHP; BigContact has a deprecated constructor

SRP 0% 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
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/bigcontact/include/contact-json.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bigcontact/classes/BigContactWidget.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bigcontact/classes/BigContactWidget.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 87% 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:
  • Screenshots: Add images for these screenshots: #1 (Front-end view with default settings.), #2 (Form Options page), #3 (Visit the help section for quick tips about the page), #4 (Quickly use the in-place editor to customize the page), #5 (Shortcode generator), #6 (Form Settings Page)
  • Tags: There are too many tags (20 tag instead of maximum 10)
You can look at the official readme.txt

bigcontact/BigContact.php 85% from 13 tests

Analyzing the main PHP file in "BigContact Contact Page" version 1.5.8
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 402 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("bigcontact.php" instead of "BigContact.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
No dangerous file extensions were detected7,286 lines of code in 96 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript732443253,288
PHP173231202,440
CSS61553451,558

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity11.15
▷ Minimum class complexity1.00
▷ Maximum class complexity37.00
Average method complexity1.68
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods193
▷ Static methods31.55%
▷ Public methods193100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants480.00%
▷ Class constants120.00%
▷ Public constants1100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
69 PNG files occupy 1.56MB with 0.48MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
view/css/red-custom/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%
view/css/red-custom/images/ui-bg_diagonals-thick_75_f3d8d8_40x40.png0.25KB0.15KB▼ 39.45%
view/css/redmond/images/ui-bg_glass_75_d0e5f5_1x400.png0.12KB0.16KB0.00%
screenshot-6.png125.28KB43.98KB▼ 64.89%
view/css/red-custom/images/ui-bg_dots-small_65_a6a6a6_2x2.png0.08KB0.08KB0.00%