73% contact-widgets-for-elementor

Code Review | Contact Widgets For Elementor all the contact links you need in one place

WordPress plugin Contact Widgets For Elementor all the contact links you need in one place scored73%from 54 tests.

About plugin

  • Plugin page: contact-widgets-f...
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.9.3
  • WordPress version: 6.3.1
  • First release: Jun 30, 2019
  • Latest release: May 17, 2022
  • Number of updates: 33
  • Update frequency: every 32.0 days
  • Top authors: ronena100 (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

1,000+ active /12,448 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲4.62MB] [CPU: ▲11.26ms] Passed 4 tests

An overview of server-side resources used by Contact Widgets For Elementor all the contact links you need in one place
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /8.49 ▲5.0361.65 ▲8.98
Dashboard /wp-admin8.51 ▲5.2170.37 ▲13.12
Posts /wp-admin/edit.php8.52 ▲5.1679.06 ▲24.03
Add New Post /wp-admin/post-new.php8.95 ▲3.07107.74 ▼1.08
Media Library /wp-admin/upload.php8.52 ▲5.2965.17 ▲28.15
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius8.5258.19

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 186 new files
Database: no new tables, 10 new options
New WordPress options
fs_debug_mode
fs_accounts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
fs_active_plugins
fs_gdpr
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Contact Widgets For Elementor all the contact links you need in one place
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲8114.77 ▲0.151.78 ▲0.0130.49 ▼8.27
Dashboard /wp-admin2,248 ▲685.52 ▼0.1687.71 ▼1.8646.82 ▲1.65
Posts /wp-admin/edit.php2,154 ▲542.15 ▲0.1943.75 ▲2.0142.61 ▲2.28
Add New Post /wp-admin/post-new.php1,560 ▲3421.70 ▼1.35666.08 ▲33.5251.60 ▼7.43
Media Library /wp-admin/upload.php1,453 ▲564.20 ▼0.0199.08 ▼8.7046.40 ▲1.83
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius1,0761.6928.5127.94

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/contact-widgets-for-elementor/freemius/includes/class-freemius.php+8575
    Undefined property: stdClass::$plugins
  • Zombie WordPress options detected upon uninstall: 10 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • fs_active_plugins
    • fs_gdpr
    • db_upgraded
    • widget_recent-comments
    • fs_debug_mode
    • can_compress_scripts
    • fs_accounts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Elementorcontact\\add_action() in wp-content/plugins/contact-widgets-for-elementor/plugin.php:114

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
  • Requires php: Invalid version format
You can look at the official readme.txt

contact-widgets-for-elementor/contact-widgets-for-elementor.php 92% from 13 tests

"Contact Widgets For Elementor all the contact links you need in one place" version 1.0.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin35,422 lines of code in 137 files:
LanguageFilesBlank linesComment linesLines of code
PHP1177,51616,82434,737
PO File1138435326
JavaScript64364240
CSS12133100
SVG10019

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
The following items need your attention
  • Class cyclomatic complexity has to be reduced to less than 1000 (currently 2,910)
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity79.87
▷ Minimum class complexity1.00
▷ Maximum class complexity2,910.00
Average method complexity4.57
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes53
▷ Abstract classes23.77%
▷ Concrete classes5196.23%
▷ Final classes11.96%
Methods1,201
▷ Static methods17414.49%
▷ Public methods83569.53%
▷ Protected methods332.75%
▷ Private methods33327.73%
Functions98
▷ Named functions9596.94%
▷ Anonymous functions33.06%
Constants126
▷ Global constants9877.78%
▷ Class constants2822.22%
▷ Public constants28100.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
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
includs/contact-icons-16.png2.22KB0.22KB▼ 90.04%