10% ym-contact-display

Code Review | YM Contact Display

WordPress plugin YM Contact Display scored 10% from 54 tests.

About plugin

  • Plugin page: ym-contact-display
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 5.8.1
  • First release: Oct 9, 2014
  • Latest release: Oct 9, 2014
  • Number of updates: 11
  • Update frequency: every 0.1 days
  • Top authors: youngminds (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active / 1,012 total downloads


Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/ym-contact-display/ym-contact-display.php+142
    Function create_function() is deprecated

Server metrics [RAM: ▼1.83MB] [CPU: ▼189.73ms] Passed 4 tests

Analyzing server-side resources used by YM Contact Display
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /1.80 ▼1.033.47 ▼21.20
Dashboard /wp-admin1.82 ▼1.248.61 ▼34.31
Posts /wp-admin/edit.php1.82 ▼1.293.94 ▼36.67
Add New Post /wp-admin/post-new.php1.82 ▼3.623.68 ▼666.72
Media Library /wp-admin/upload.php1.82 ▼1.185.31 ▼19.57

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for YM Contact Display
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,666 ▲6515.57 ▼0.156.61 ▼3.7981.80 ▲9.59
Dashboard /wp-admin2,929 ▲376.12 ▼0.06116.54 ▼13.78168.11 ▼4.68
Posts /wp-admin/edit.php2,737 ▼33.23 ▲0.0161.58 ▼16.22132.75 ▼42.69
Add New Post /wp-admin/post-new.php3,807 ▲16719.03 ▲3.96428.50 ▼14.09153.24 ▼11.63
Media Library /wp-admin/upload.php1,752 ▲35.48 ▼0.02142.84 ▲1.37186.31 ▼0.50

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/ym-contact-display/ym-contact-display.php+142
    Function create_function() is deprecated
  • The uninstall procedure has failed, leaving 1 option in the database
    • widget_ym_contact_display

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ym-contact-display/ym-contact-display.php:12

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)
No browser errors were detected


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: address display, contact display, contact address, address, contact

ym-contact-display/ym-contact-display.php Passed 13 tests

Analyzing the main PHP file in "YM Contact Display" version 1.0
74 characters long description:
Add contact display widget to show company name, address, phone, email etc

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin123 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity26.00
▷ Minimum class complexity26.00
▷ Maximum class complexity26.00
Average method complexity7.25
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected