68% matrimony

Code Review | Matrimony

WordPress plugin Matrimony scored 68% from 54 tests.

About plugin

  • Plugin page: matrimony
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7
  • WordPress version: 6.3.1
  • First release: Sep 9, 2020
  • Latest release: Apr 10, 2021
  • Number of updates: 26
  • Update frequency: every 8.4 days
  • Top authors: wpmwa (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active / 3,321 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▼2.52ms] Passed 4 tests

Analyzing server-side resources used by Matrimony
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0743.24 ▲3.82
Dashboard /wp-admin3.42 ▲0.1246.44 ▼1.77
Posts /wp-admin/edit.php3.53 ▲0.1848.59 ▼0.30
Add New Post /wp-admin/post-new.php6.00 ▲0.1194.73 ▼11.81
Media Library /wp-admin/upload.php3.34 ▲0.1137.16 ▲4.20
Shortcodes List /wp-admin/admin.php?page=mwa_matri_plug_info3.3434.69
Profile List /wp-admin/admin.php?page=mwa_matri_plug3.3535.03
CSS Settings /wp-admin/admin.php?page=mwa_matri_plug_css3.3535.76
Profile slider Settings /wp-admin/admin.php?page=mwa_matri_plug_slider3.3433.36
Update Member /wp-admin/admin.php?page=mwa_matri_update3.4834.25

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 106 new files
Database: 2 new tables, 7 new options
New tables
wp_height
wp_matri_bio
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
profile_gender
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Matrimony
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲10113.26 ▼1.501.72 ▲0.0244.20 ▼3.27
Dashboard /wp-admin2,242 ▲575.88 ▲0.9798.65 ▼3.0379.07 ▲36.46
Posts /wp-admin/edit.php2,125 ▲362.01 ▼0.0038.17 ▼2.4433.97 ▼0.22
Add New Post /wp-admin/post-new.php1,558 ▲3918.03 ▼5.08750.04 ▲81.7084.36 ▲36.54
Media Library /wp-admin/upload.php1,424 ▲334.21 ▼0.09113.09 ▲12.3846.08 ▲0.77
Shortcodes List /wp-admin/admin.php?page=mwa_matri_plug_info1,0573.5162.2897.61
Profile List /wp-admin/admin.php?page=mwa_matri_plug1,2284.0978.3070.08
CSS Settings /wp-admin/admin.php?page=mwa_matri_plug_css1,6584.7174.4585.53
Profile slider Settings /wp-admin/admin.php?page=mwa_matri_plug_slider1,0823.4743.3867.29
Update Member /wp-admin/admin.php?page=mwa_matri_update2,3323.4246.1068.11

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_height
    • wp_matri_bio
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • profile_gender

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+76
    Undefined variable: profile_id
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+80
    Undefined variable: candidate_name
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+84
    Undefined variable: dob
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+88
    Undefined variable: bp
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+102
    Undefined variable: gender
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+115
    Undefined variable: manglik
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+121
    Undefined variable: gotra
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+126
    Undefined variable: maternal_gotra
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+135
    Undefined variable: father_name
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+139
    Undefined variable: father_mno
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+143
    Undefined variable: father_occupation
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+147
    Undefined variable: father_annual_income
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+151
    Undefined variable: mother_name
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+155
    Undefined variable: mother_occupation
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+159
    Undefined variable: grand_father
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+165
    Undefined variable: native_place
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+169
    Undefined variable: nationality
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+180
    Undefined variable: status_of_family
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+192
    Undefined variable: address
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+196
    Undefined variable: country
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+239
    Undefined variable: state
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+245
    Undefined variable: district
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+249
    Undefined variable: pincode
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+253
    Undefined variable: phone
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+257
    Undefined variable: contactno
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+261
    Undefined variable: email
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+288
    Undefined variable: height
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+302
    Undefined variable: body_type
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+318
    Undefined variable: skin_type
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+336
    Undefined variable: blood_group
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+360
    Undefined variable: education
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+364
    Undefined variable: hobby
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+368
    Undefined variable: candidate_occupation
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+372
    Undefined variable: designation
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+376
    Undefined variable: annual_income
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+380
    Undefined variable: company_name
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+384
    Undefined variable: company_city
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+393
    Undefined variable: ub_no
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+397
    Undefined variable: us_no
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+401
    Undefined variable: mb_no
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+405
    Undefined variable: ms_no
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+414
    Undefined variable: relation
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+418
    Undefined variable: rel_name
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+422
    Undefined variable: rel_mno
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+426
    Undefined variable: rel_city
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+430
    Undefined variable: rel_company
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+434
    Undefined variable: rel_designation
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+438
    Undefined variable: rel_comp_add
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+453
    Undefined variable: mwa_kundali_milan
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+459
    Undefined variable: mwa_extra_info
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Notice in wp-content/plugins/matrimony/admin/inc/profile_edit.php+469
    Undefined variable: profile_image_url

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=mwa_matri_update
    • > Network (severe)
    wp-content/plugins/matrimony//admin/assets/img/matrimony-logo.PNG - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
Please take inspiration from this readme.txt

matrimony/matrimony.php Passed 13 tests

Analyzing the main PHP file in "Matrimony" version 1.0
98 characters long description:
Matrimony, is a Matrimonial plugin which converts your WordPress website to a Matrimonial Website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin28,862 lines of code in 67 files:
LanguageFilesBlank linesComment linesLines of code
CSS171,55011913,703
JavaScript212,7882,00611,509
PHP27137682,944
PO File2336430706

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity8.88
▷ Minimum class complexity1.00
▷ Maximum class complexity52.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity52.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes112.50%
Methods29
▷ Static methods2586.21%
▷ Public methods2689.66%
▷ Protected methods00.00%
▷ Private methods310.34%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
9 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/assets/images/prev.png1.33KB1.59KB0.00%
admin/assets/css/DataTables-1.10.23/images/sort_asc_disabled.png0.14KB0.25KB0.00%
admin/assets/css/DataTables-1.10.23/images/sort_both.png0.20KB0.29KB0.00%
admin/assets/css/DataTables-1.10.23/images/sort_desc.png0.15KB0.25KB0.00%
admin/assets/img/matrimony-logo.png1.03KB0.95KB▼ 7.93%