68% contact-manager

Code Review | Contact Manager

WordPress plugin Contact Manager scored 68% from 54 tests.

About plugin

  • Plugin page: contact-manager
  • Plugin version: 8.6.3
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Apr 3, 2012
  • Latest release: Oct 2, 2021
  • Number of updates: 438
  • Update frequency: every 7.9 days
  • Top authors: Kleor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 41,023 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
Installer ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▼142.82ms] Passed 4 tests

A check of server-side resources used by Contact Manager
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.98 ▲0.2545.15 ▲17.81
Dashboard /wp-admin3.28 ▲0.2248.56 ▼0.07
Posts /wp-admin/edit.php3.33 ▲0.2244.95 ▼3.54
Add New Post /wp-admin/post-new.php5.58 ▲0.1498.74 ▼565.01
Media Library /wp-admin/upload.php3.16 ▲0.1532.84 ▼2.66

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 82 new files
Database: 3 new tables, 7 new options
New tables
wp_contact_manager_forms
wp_contact_manager_forms_categories
wp_contact_manager_messages
New WordPress options
contact_manager
contact_manager_forms
contact_manager_forms_categories
contact_manager_statistics
contact_manager_back_office
contact_manager_messages
contact_manager_cron

Browser metrics Passed 4 tests

This is an overview of browser requirements for Contact Manager
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,720 ▲12415.77 ▲0.218.70 ▼1.6947.58 ▼9.21
Dashboard /wp-admin2,979 ▲485.93 ▲0.00145.56 ▼4.94141.02 ▲21.23
Posts /wp-admin/edit.php2,773 ▲342.69 ▼0.0068.70 ▲0.1293.78 ▼5.52
Add New Post /wp-admin/post-new.php1,564 ▼11918.45 ▼0.25391.64 ▼11.99128.32 ▲19.37
Media Library /wp-admin/upload.php1,767 ▼405.02 ▲0.02143.08 ▼17.43147.28 ▲18.41

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie tables detected upon uninstall: 3 tables
    • wp_contact_manager_forms
    • wp_contact_manager_forms_categories
    • wp_contact_manager_messages
  • Zombie WordPress options were found after uninstall: 7 options
    • contact_manager_back_office
    • contact_manager_statistics
    • contact_manager
    • contact_manager_messages
    • contact_manager_forms
    • contact_manager_cron
    • contact_manager_forms_categories

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 6× PHP files output text when accessed directly:
    • > /wp-content/plugins/contact-manager/languages/index.php
    • > /wp-content/plugins/contact-manager/includes/forms/index.php
    • > /wp-content/plugins/contact-manager/libraries/index.php
    • > /wp-content/plugins/contact-manager/images/index.php
    • > /wp-content/plugins/contact-manager/includes/index.php
    • > /wp-content/plugins/contact-manager/index.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/contact-manager/includes/preview.php:34

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention: You can look at the official readme.txt

contact-manager/contact-manager.php Passed 13 tests

The main file in "Contact Manager" v. 8.6.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
64 characters long description:
Allows you to create and manage your contact forms and messages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected9,937 lines of code in 72 files:
LanguageFilesBlank linesComment linesLines of code
PHP646342387,847
PO File285401,914
CSS2371172
JavaScript20172
SVG2002

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.64
Average class complexity5.61
▷ Minimum class complexity1.00
▷ Maximum class complexity40.00
Average method complexity1.81
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces3
Traits0
Classes19
▷ Abstract classes00.00%
▷ Concrete classes19100.00%
▷ Final classes00.00%
Methods144
▷ Static methods21.39%
▷ Public methods12284.72%
▷ Protected methods1812.50%
▷ Private methods42.78%
Functions143
▷ Named functions13493.71%
▷ Anonymous functions96.29%
Constants14
▷ Global constants14100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/date-picker.png0.60KB0.58KB▼ 1.96%
images/icon.png0.10KB0.08KB▼ 17.65%