68% wp-easy-contact

Code Review | Best Contact Management Software for WordPress

WordPress plugin Best Contact Management Software for WordPress scored68%from 54 tests.

About plugin

  • Plugin page: wp-easy-contact
  • Plugin version: 3.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.2
  • WordPress version: 6.3.1
  • First release: Mar 5, 2015
  • Latest release: May 28, 2023
  • Number of updates: 75
  • Update frequency: every 40.1 days
  • Top authors: emarket-design (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /19,395 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.51MB] [CPU: ▲3.98ms] Passed 4 tests

An overview of server-side resources used by Best Contact Management Software for WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.97 ▲0.5143.31 ▲1.28
Dashboard /wp-admin3.85 ▲0.5575.27 ▲28.78
Posts /wp-admin/edit.php3.92 ▲0.5755.36 ▲6.94
Add New Post /wp-admin/post-new.php6.40 ▲0.5289.59 ▲0.78
Media Library /wp-admin/upload.php3.71 ▲0.4841.45 ▲6.91
All Contacts /wp-admin/edit.php?post_type=emd_contact3.9543.39
Forms /wp-admin/admin.php?page=wp_easy_contact_forms3.6938.76
Add New /wp-admin/post-new.php?post_type=emd_contact4.6667.91
Settings /wp-admin/admin.php?page=wp_easy_contact_settings3.8341.09
Plugins /wp-admin/admin.php?page=wp_easy_contact_store3.7540.56
States /wp-admin/edit-tags.php?taxonomy=contact_state&post_type=emd_contact3.7651.16
Topics /wp-admin/edit-tags.php?taxonomy=contact_topic&post_type=emd_contact3.7445.84
CSV Import/Export /wp-admin/admin.php?page=operations_emd_contact3.6836.62
Getting Started /wp-admin/admin.php?page=wp_easy_contact3.6935.79
Support /wp-admin/admin.php?page=wp_easy_contact_support3.7445.56

Server storage [IO: ▲2.74MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 268 new files
Database: 1 new table, 26 new options
New tables
wp_emd_sessions
New WordPress options
widget_recent-posts
can_compress_scripts
wp_easy_contact_init_tax
emd_activated_plugins
theysaidso_admin_options
widget_recent-comments
wp_easy_contact_ent_list
wp_easy_contact_glob_init_list
wp_easy_contact_access_views
wp_easy_contact_setup_pages
...

Browser metrics Passed 4 tests

A check of browser resources used by Best Contact Management Software for WordPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,029 ▲29413.31 ▼0.981.59 ▼0.2540.55 ▼3.84
Dashboard /wp-admin2,430 ▲2394.89 ▼0.99109.22 ▼0.5256.07 ▲13.14
Posts /wp-admin/edit.php2,275 ▲1862.17 ▲0.1835.76 ▼0.6138.59 ▲3.82
Add New Post /wp-admin/post-new.php1,749 ▲21622.40 ▼0.84613.65 ▲4.8370.25 ▲12.13
Media Library /wp-admin/upload.php1,575 ▲1844.28 ▲0.00100.87 ▲1.8647.28 ▲2.78
All Contacts /wp-admin/edit.php?post_type=emd_contact1,3372.3637.3137.80
Forms /wp-admin/admin.php?page=wp_easy_contact_forms1,1221.9736.2830.42
Add New /wp-admin/post-new.php?post_type=emd_contact4,9727.97244.32101.41
Settings /wp-admin/admin.php?page=wp_easy_contact_settings1,4712.6837.7933.33
Plugins /wp-admin/admin.php?page=wp_easy_contact_store1,3001.8927.6036.93
States /wp-admin/edit-tags.php?taxonomy=contact_state&post_type=emd_contact2,4152.3329.7048.52
Topics /wp-admin/edit-tags.php?taxonomy=contact_topic&post_type=emd_contact1,6692.3230.6039.31
CSV Import/Export /wp-admin/admin.php?page=operations_emd_contact1,0371.6823.5040.70
Getting Started /wp-admin/admin.php?page=wp_easy_contact2,4932.1047.5598.94
Support /wp-admin/admin.php?page=wp_easy_contact_support1,2811.9925.7251.59

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_emd_sessions
  • The uninstall procedure has failed, leaving 23 options in the database
    • widget_wp_easy_contact_recent_contacts_widget
    • widget_recent-comments
    • wp_easy_contact_add_caps
    • wp_easy_contact_setup_pages
    • can_compress_scripts
    • db_upgraded
    • emd_inc_email_apps
    • emd_activated_plugins
    • wp_easy_contact_glob_forms_list
    • wp_easy_contact_ent_list
    • ...

Smoke tests 50% 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wp-easy-contact/layouts/widget-recent-contacts-footer.php
    • > /wp-content/plugins/wp-easy-contact/layouts/widget-recent-contacts-header.php
  • 19× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_permalink() in wp-content/plugins/wp-easy-contact/layouts/emd-login.php:2
    • > PHP Notice
      Undefined variable: post in wp-content/plugins/wp-easy-contact/layouts/widget-recent-contacts-content.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-easy-contact/assets/ext/emd-session/includes/emd-wp-session.php:86
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-easy-contact/assets/ext/emd-session/includes/emd-wp-session.php:86
    • > PHP Notice
      Undefined variable: post in wp-content/plugins/wp-easy-contact/layouts/single-emd-contact.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-easy-contact/layouts/widget-recent-contacts-content.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_active_sidebar() in wp-content/plugins/wp-easy-contact/layouts/emd-sidebar.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-easy-contact/assets/ext/emd-meta-box/inc/init.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'EMD_MB_Field' not found in wp-content/plugins/wp-easy-contact/assets/ext/emd-meta-box/inc/fields/file-input.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wp-easy-contact/includes/admin/tabs.php:54

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
5 plugin tags: lead management, contact form, contact manager, contact form database, easy contact form

wp-easy-contact/wp-easy-contact.php Passed 13 tests

The main file in "Best Contact Management Software for WordPress" v. 3.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
90 characters long description:
WP Easy Contact provides a contact form and stores the collected information in WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected28,876 lines of code in 189 files:
LanguageFilesBlank linesComment linesLines of code
PHP1028293,78320,817
JavaScript495267315,625
CSS371121222,432
SVG1002

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity20.40
▷ Minimum class complexity1.00
▷ Maximum class complexity143.00
Average method complexity4.29
▷ Minimum method complexity1.00
▷ Maximum method complexity73.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes58
▷ Abstract classes00.00%
▷ Concrete classes58100.00%
▷ Final classes23.45%
Methods337
▷ Static methods21162.61%
▷ Public methods32195.25%
▷ Protected methods102.97%
▷ Private methods61.78%
Functions196
▷ Named functions19599.49%
▷ Anonymous functions10.51%
Constants17
▷ Global constants17100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
64 compressed PNG files occupy 0.39MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/addons/spotlight-arch-300x200.png12.70KB13.13KB0.00%
assets/img/check.png1.52KB1.56KB0.00%
assets/ext/emd-meta-box/img/jqueryui/ui-icons_888888_256x240.png4.27KB4.11KB▼ 3.78%
assets/img/jui-img/ui-bg_flat_75_ffffff_40x100.png0.07KB0.08KB0.00%
assets/img/jui-img/ui-bg_glass_75_dadada_1x400.png0.10KB0.16KB0.00%