68% contact-manager

Code Review | Contact Manager

WordPress plugin Contact Manager scored68%from 54 tests.

About plugin

  • Plugin page: contact-manager
  • Plugin version: 8.6.4
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 3, 2012
  • Latest release: Nov 13, 2022
  • Number of updates: 1
  • Update frequency: every 365.0 days

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /45,360 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.15MB] [CPU: ▼8.71ms] Passed 4 tests

A check of server-side resources used by Contact Manager
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1441.27 ▲0.76
Dashboard /wp-admin3.47 ▲0.1245.50 ▼21.87
Posts /wp-admin/edit.php3.58 ▲0.2249.42 ▲0.71
Add New Post /wp-admin/post-new.php6.05 ▲0.1785.06 ▼13.62
Media Library /wp-admin/upload.php3.39 ▲0.1637.56 ▼0.07

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, 13 new options
New tables
wp_contact_manager_messages
wp_contact_manager_forms
wp_contact_manager_forms_categories
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
contact_manager_statistics
widget_recent-comments
contact_manager_forms_categories
contact_manager_forms
contact_manager_back_office
contact_manager_cron
theysaidso_admin_options
...

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 /2,804 ▲4314.24 ▼0.381.82 ▲0.0344.12 ▼2.14
Dashboard /wp-admin2,210 ▲395.74 ▲0.1581.56 ▼6.4578.49 ▲39.23
Posts /wp-admin/edit.php2,115 ▲151.97 ▲0.0135.29 ▼0.7933.96 ▼1.55
Add New Post /wp-admin/post-new.php6,423 ▲4,89527.76 ▲4.68994.16 ▲297.6065.41 ▲8.74
Media Library /wp-admin/upload.php1,415 ▲154.19 ▲0.01100.11 ▼11.9669.92 ▲24.54

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: 13 options
    • contact_manager_statistics
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • contact_manager_forms
    • widget_recent-posts
    • contact_manager_back_office
    • contact_manager_forms_categories
    • contact_manager_messages
    • contact_manager
    • ...

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/includes/forms/index.php
    • > /wp-content/plugins/contact-manager/libraries/index.php
    • > /wp-content/plugins/contact-manager/includes/index.php
    • > /wp-content/plugins/contact-manager/index.php
    • > /wp-content/plugins/contact-manager/images/index.php
    • > /wp-content/plugins/contact-manager/languages/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.4 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,980 lines of code in 72 files:
LanguageFilesBlank linesComment linesLines of code
PHP646342387,884
PO File285701,920
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.63
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%
Functions144
▷ Named functions13493.06%
▷ Anonymous functions106.94%
Constants15
▷ Global constants15100.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%